Skip to content
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
@bvaughn

Description

@bvaughn

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions