Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(select): ensure that at least one option has the selected attribute set #8429

Closed

Conversation

petebacondarwin
Copy link
Member

Using prop to set selected is correct programmatically but accessibility
guidelines suggest that at least on item should have the selected attribute
set.

Closes #8366

…bute set

Using `prop` to set selected is correct programmatically but accessibility
guidelines suggest that at least on item should have the `selected` attribute
set.

Closes angular#8366
@petebacondarwin
Copy link
Member Author

@JoshSchreuder - how does this look for you?

@JoshSchreuder
Copy link
Contributor

LGTM, thanks!

@IgorMinar
Copy link
Contributor

lgtm

petebacondarwin added a commit that referenced this pull request Aug 3, 2014
…bute set

Using `prop` to set selected is correct programmatically but accessibility
guidelines suggest that at least on item should have the `selected` attribute
set.

Closes #8366
Closes #8429

Conflicts:
	test/ng/directive/selectSpec.js
@petebacondarwin
Copy link
Member Author

Oops. Breaks v1.2.x on IE8 (surprise surprise). Fix on the way

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.