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 element: change defaultValue to value ? #13

Open
samrae7 opened this issue Sep 29, 2017 · 0 comments
Open

Select element: change defaultValue to value ? #13

samrae7 opened this issue Sep 29, 2017 · 0 comments

Comments

@samrae7
Copy link
Collaborator

samrae7 commented Sep 29, 2017

We were trying to programmatically update the selected value of a select (based on a user action elsewhere on the form).

This didn't seem to work because selects do not update their defaultValue when the value changes (obviously), so value changes but this can't be seen on the page because defaultValue is the same.

The workaround we can find is changing defaultValue to value on ISelect, which we think works for this library because the aim is to allow updating element values in the way described above

Does this make sense?

@samrae7 samrae7 changed the title Select element - defaultValue => value Select element: change defaultValue to value ? Sep 29, 2017
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

1 participant