mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:20:57 -06:00
UX: select on blur if there are no choices for select2
This commit is contained in:
parent
930937cfd5
commit
eed8ddbb5c
@ -21,7 +21,8 @@ export default Ember.Component.extend({
|
||||
tokenSeparators: ["|"],
|
||||
tags : this.get("choices") || [],
|
||||
width: 'off',
|
||||
dropdownCss: this.get("choices") ? {} : {display: 'none'}
|
||||
dropdownCss: this.get("choices") ? {} : {display: 'none'},
|
||||
selectOnBlur: this.get("choices") ? false : true
|
||||
};
|
||||
|
||||
var settingName = this.get('settingName');
|
||||
|
Loading…
Reference in New Issue
Block a user