Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Stop updating defaultValue prop of <textarea> #32559

Open
lovetingyuan opened this issue Mar 9, 2025 · 2 comments
Open

Bug: Stop updating defaultValue prop of <textarea> #32559

lovetingyuan opened this issue Mar 9, 2025 · 2 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@lovetingyuan
Copy link

lovetingyuan commented Mar 9, 2025

React version: 19.0.0

Steps To Reproduce

  1. render a controlled <textarea> element.
    2.when typing in it, the textarea defaultValue prop will also get updated.

Link to code example:

The current behavior

This behavior is inconsistent with HTML standards and other front-end frameworks. They will keep defaultValue unchanged.

The expected behavior

Just update the value prop, do not update the defaultValue prop.

@lovetingyuan lovetingyuan added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Mar 9, 2025
@ayomideadeniran
Copy link

I am Mern Developer, Can i work on this?

Here is my Portfolio https://knightsdev-portfolio.vercel.app/

@lovetingyuan lovetingyuan changed the title Bug: Stop updating text child node of <textarea> Bug: Stop updating defaultValue prop of <textarea> Mar 9, 2025
@narekmalk
Copy link

Can I take this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

3 participants