You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
samrae7
changed the title
Select element - defaultValue => value
Select element: change defaultValue to value ?
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 thevalue
changes (obviously), sovalue
changes but this can't be seen on the page becausedefaultValue
is the same.The workaround we can find is changing
defaultValue
tovalue
onISelect
, which we think works for this library because the aim is to allow updating element values in the way described aboveDoes this make sense?
The text was updated successfully, but these errors were encountered: