Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select setValue #18

Open
sagikazarmark opened this issue May 12, 2014 · 0 comments
Open

Select setValue #18

sagikazarmark opened this issue May 12, 2014 · 0 comments

Comments

@sagikazarmark
Copy link
Contributor

IMO calling setValue on select should deselect all the earlier selected values.

The current problem it occured: in the ModelProvider I showed on IRC first sets the default value. When I repopulate the form, the selected value does not override the default one.

I also think that it should be possible to determine whether an Option is selected or not. IMO this would be better on this line:

$attributes['selected'] = 'selected';

This also makes it super easy to deselect an item.

@emlynwest emlynwest added this to the 2.0-alpha milestone May 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants