This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngOptions can cause flickering/jumping highlight on Firefox #6769
Closed
Description
Request Type: bug
How to reproduce: http://plnkr.co/edit/ciOEcE9fidbeXzRrZ2HN?p=preview
Component(s): ngOptions
Impact: medium
Complexity: small
Detailed Description:
The ngOptions directive causes a strange flickering behavior on Firefox when the digest loop is triggered. This issue does not occur for Safari or Chrome. I encountered this issue in version 1.2.14 but after researching, I believe it's been around since version 1.0.x.
Other Comments:
I was able to "fix" this issue by editing src/ng/directive/select.js
line 534 as follows:
- if (lastElement[0].selected !== option.selected) {
+ if (existingOption.selected !== option.selected) {
Unfortunately this breaks on of the select unit tests, should select correct input if previously selected option was "?".
I'll play with it some more but would welcome any input from the community.
Metadata
Metadata
Assignees
Labels
No labels