mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +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
|
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.
|
* Sets the max-height property on the dropdown list.
|
||||||
* @deprecated
|
* @deprecated
|
||||||
@@ -1053,7 +1062,7 @@
|
|||||||
* @return {Boolean}
|
* @return {Boolean}
|
||||||
*/
|
*/
|
||||||
showClearButton() {
|
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