2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-04 06:32:23 +03:00

Merge pull request #470 from dbezborodovrp/feature/clear-button-flag

Clear button flag.
This commit is contained in:
Jeff
2018-02-28 10:25:44 -08:00
committed by GitHub
+10 -1
View File
@@ -423,6 +423,15 @@
default: false
},
/**
* Can the user clear the selected property?
* @type {Boolean}
*/
clearable: {
type: Boolean,
default: true
},
/**
* Sets the max-height property on the dropdown list.
* @deprecated
@@ -1053,7 +1062,7 @@
* @return {Boolean}
*/
showClearButton() {
return !this.multiple && !this.open && this.mutableValue != null
return !this.multiple && this.clearable && !this.open && this.mutableValue != null
}
},