Closed martijnlentink closed 8 years ago
Thanks for making this PR. But this resolution using :not
selector in querySelector
method may have compatibility issue in IE8. Because we still willing to support angular 1.2. IE8 compatibility should be considered
IE8 has been discontinued and has reached EOL, as has IE9. No compatibility for it should be considered.
Well, because AngularJS 1.2 doesn't drop support for IE8, we cannot simply ignore the compatibility with IE8 as long as we declare supporting for IE8.
I merged both solutions with a IE8 check. This should speed it up for newer browsers and leaves IE8 with a working solution.
Thank you for you patient. But I think detect the existence of addEventListener
for IE8 is not very reliable because someone can use a polyfills for DOM API which contains addEventListener
. I've found a better special css3 selector detection http://fiddle.jshell.net/leaverou/Pmn8m/?utm_source=website&utm_medium=embed&utm_campaign=Pmn8m
Cool! Nice find, I'll add that check.
Thanks for contribution!
When a large number of items are used in the dropdown everything is traversed to find to one to highlight, this fix will directly return the first selected option without enumeration.