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
179 stars 81 forks source link

disabled property defined makes scroll inactive on IE #118

Open Toilal opened 8 years ago

Toilal commented 8 years ago

This issue only occurs in Internet Explorer (IE 11.0.9600.17959)

It was quite hard to reproduce because it only occurs when change disabled property from false to true.

Load this plnkr http://plnkr.co/edit/KXK36BEgIKvx8XWP5M40?p=preview and then open the select : Scrollbar is disabled and doesn't work.

Toilal commented 8 years ago

Replacing disabled property with data-disabled fix the issue.

I'm not sure it's a good idea to use the HTML5 disabled attribute as a property for angularJS directive, as it may conflict with the native implementation of the browser ...

Why not using ng-disabled ? or nya-disabled ?

jonkri commented 8 years ago

Ah, your issue helped me work around #120 (using data-disabled rather than disabled got rid of the problem). Cheers, mate! :)