Skip to content

<textarea> value handling inconsistencies #18574

Description

@brunnerh

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

REPL

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions