Last Updated: February 25, 2016
·
2.579K
· saebyn

IE8 & AngularJS select weirdness

In IE8, using the select directive with ng-options and ng-model can cause some odd behavior when hovering over the opened list of options. When hovering over the list, the selection will randomly switch back to the currently selected option.

The work-around is to add an empty hard-coded option inside of the select, and use CSS to hide the option.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

AngularJS pages are long-lived browser apps with the same script risk as a newer single-page app. Third-party code in the template can read forms and values rendered on the page.

Security insights from Cside