Closed
Description
The value of <option>
tags of <select>
are fixed. Converting their value=
to defaultValue=
results bug if the option label is different from the value. For example:
<select name="range" value="gte-2">
<option value="lt-1">Less than 1</option>
<option value="gte-2">≥2<option>
</select>
The value of <select>
's "gte-2" won't get a match and it will fallback to "Less than 1".
html-react-parser/lib/attributes-to-props.js
Lines 42 to 49 in cffffc7
Metadata
Metadata
Assignees
Labels
No labels