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:
@@ -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
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user