Skip to content

Internet Explorer dynamically added select elements display first option by default #2983

@fergaldoyle

Description

@fergaldoyle

http://codepen.io/anon/pen/gMbPrj

Visit the above page in IE11 and you'll see two select boxes, both with empty initial values which is what we expect.

Click the show button to display two more select boxes (identical to the first two, but inside a v-if) and they will have initial values of AAA, which is bad.

Also the select element which is inside the test component gets an initial value of AAA. It seems that the select element needs to be in the DOM during page load for it work as expected. Anything added dynamically (inside a v-if or through component templates) gets an initial value which takes it out of sync of the underlying model.

I believe this happens only on Windows 8 & 10 (the select element is different from older versions of Windows).

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