We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 546b27d commit 50c4edeCopy full SHA for 50c4ede
src/components/Select.vue
@@ -423,6 +423,15 @@
423
default: false
424
},
425
426
+ /**
427
+ * Can the user clear the selected property?
428
+ * @type {Boolean}
429
+ */
430
+ clearable: {
431
+ type: Boolean,
432
+ default: true
433
+ },
434
+
435
/**
436
* Sets the max-height property on the dropdown list.
437
* @deprecated
@@ -1053,7 +1062,7 @@
1053
1062
* @return {Boolean}
1054
1063
*/
1055
1064
showClearButton() {
1056
- return !this.multiple && !this.open && this.mutableValue != null
1065
+ return !this.multiple && this.clearable && !this.open && this.mutableValue != null
1057
1066
}
1058
1067
1059
1068
0 commit comments