UX: select on blur if there are no choices for select2

This commit is contained in:
Sam 2015-04-10 09:13:51 +10:00
parent 930937cfd5
commit eed8ddbb5c

View File

@ -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');