mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 14:03:18 +08: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