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.
No longer setting selected property on <select> elements #8366
Closed
Description
Request Type: bug
How to reproduce: Create a <select>
element. In 1.2.18 this sets the selected attribute correctly, either the first option in the list if the model is clear, or the model value's corresponding <option>
element.
In 1.2.19 this does not occur.
Component(s): misc core
Impact: medium
Complexity: small
This issue is related to:
Detailed Description:
Test case here: http://plnkr.co/edit/3zm0K6OK4Dt3DIqZyt06?p=preview
I worked out that the issue exists between 1.2.18 and 1.2.19, specifically this commit: 24aee81
In 1.2.18, Angular sets the selected
property on the element, whereas in 1.2.19 it does not. Reversing the above commit restores the functionality.
It occurs on latest FF, Chrome and IE.
Other Comments: