mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Allow options to be cleared.
This commit is contained in:
parent
efc45aa704
commit
eb21ed7fcf
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue