indrimuska / angular-selector

A native AngularJS directive that transform a simple <select> box into a full html select with typeahead.
http://indrimuska.github.io/angular-selector
MIT License
96 stars 36 forks source link

Select doesn't open when clicking on placeholder text if the model is empty #87

Open taltsi opened 6 years ago

taltsi commented 6 years ago

The issue exists at least with the latest Firefox and Chrome, and can be seen e.g. at http://indrimuska.github.io/angular-selector/ with "RTL Support" demo when trying to open the select by clicking the placeholder text -- which is the intuitive way to do it.

My workaround to the problem for the time being is to just always display the select on click: onDropdownClick() { if (typeof this.dropdownSelected === 'undefined') { this.$timeout(() => { this.dropdownAPI.open(); }, 10); } }