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
react-unit or the shallow render react addon have some unexpected behaviour with value and defaultValue:
in <textarea>, both are just treated as text.
in <input>, both are treated as value
This makes proper comparison difficult. value and defaultValue are very different regarding how the component is used so this is something that will need fixing.
Each of these comparisons should be made if the attribute is present in either actual or expected
<input>
comparevalue
anddefaultValue
<input>
compare attributetype
<input type="checkbox">
and<input type="radio">
, comparechecked
anddefaultChecked
<option>
, compareselected
andvalue
<select>
, comparevalue
,defaultValue
andmultiple
Seems not possible with current
shallowRender
/react-unit
:<textarea>
, comparevalue
anddefaultValue
More may be apparent in https://facebook.github.io/react/docs/forms.html
The text was updated successfully, but these errors were encountered: