lordfriend / nya-bootstrap-select

An AngularJS select replacement which build select like dropdown component with collection and ng-model support
http://nya.io/nya-bootstrap-select/
MIT License
178 stars 81 forks source link

not closing on blur (with tab) #107

Open UltimateFighter opened 8 years ago

axul commented 7 years ago

Should this be the normal behavior?. I also think it should close on blur when pressing tab

lordfriend commented 7 years ago

I think this is not Implemented. Because it is not easy to figure out which element should treat as blur event target. when you have those button, searchbox and menu as different element but they all can be focused when you press tab. they all emit blur event when you move from one to another but in fact it is the same component.

axul commented 7 years ago

Mm I yeah I get what you mean. Maybe listening to any input onFocus while the nya-bootstrap-select is open and cheking by class that is not any input inside them menu, and if it passes, closing the options menu. and every time the menu closes the event should be unbinded.