Describe the bug
There are some inconsistencies in how value / defaultValue are handled with <textarea>.
Maybe that should be unified.
Reproduction
<textarea value="hi"></textarea>
<textarea value={'hi'}></textarea>
<textarea defaultValue="hi"></textarea>
<textarea defaultValue={'hi'}></textarea>
Playground
Where the textarea gets a value:
| Case |
CSR |
SSR |
<textarea value="hi"></textarea> |
❌ |
✔️ |
<textarea value={'hi'}></textarea> |
✔️ |
✔️ |
<textarea defaultValue="hi"></textarea> |
✔️ |
❌ |
<textarea defaultValue={'hi'}></textarea> |
✔️ |
❌ |
Logs
System Info
Severity
annoyance
Describe the bug
There are some inconsistencies in how
value/defaultValueare handled with<textarea>.Maybe that should be unified.
Reproduction
Playground
Where the
textareagets a value:<textarea value="hi"></textarea><textarea value={'hi'}></textarea><textarea defaultValue="hi"></textarea><textarea defaultValue={'hi'}></textarea>Logs
System Info
Severity
annoyance