From e0584cda96ddea4f67dc8f6921083959796c065b Mon Sep 17 00:00:00 2001 From: Myles Cowper-Coles Date: Mon, 17 Sep 2018 17:18:13 +0100 Subject: [PATCH] Adding the 'clearable' prop to the docs (#649) What: * Adding clearable to the gitbook Props.md Why: * Its a prop on the select component but it wasn't documented correctly --- docs/gitbook/Api/Props.md | 9 +++++++++ src/components/Select.vue | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/gitbook/Api/Props.md b/docs/gitbook/Api/Props.md index 9285251..bee89f1 100644 --- a/docs/gitbook/Api/Props.md +++ b/docs/gitbook/Api/Props.md @@ -90,6 +90,15 @@ clearSearchOnSelect: { default: true }, +/** + * Enables/disables allowing the user to clear the selected property. + * @type {Boolean} + */ +clearable: { + type: Boolean, + default: true +}, + /** * Close a dropdown when an option is chosen. Set to false to keep the dropdown * open (useful when combined with multi-select, for example) diff --git a/src/components/Select.vue b/src/components/Select.vue index 92dd5d0..4db3ba5 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -428,7 +428,7 @@ }, /** - * Can the user clear the selected property? + * Can the user clear the selected property. * @type {Boolean} */ clearable: {