Last Updated: February 25, 2016
·
2.597K
· 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?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside