Allow options to be cleared.
This commit is contained in:
parent
efc45aa704
commit
eb21ed7fcf
|
@ -65,7 +65,11 @@ export default Ember.Component.extend({
|
|||
|
||||
const $elem = this.$();
|
||||
const minimumResultsForSearch = this.capabilities.isIOS ? -1 : 5;
|
||||
$elem.select2({formatResult: this.comboTemplate, minimumResultsForSearch, width: 'resolve'});
|
||||
$elem.select2({
|
||||
formatResult: this.comboTemplate, minimumResultsForSearch,
|
||||
width: 'resolve',
|
||||
allowClear: true
|
||||
});
|
||||
|
||||
const castInteger = this.get('castInteger');
|
||||
$elem.on("change", e => {
|
||||
|
|
Loading…
Reference in New Issue