-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Provide a general summary of the issue here
When using TextField
and TextArea
together with useActionState
, submitting the action causes the TextArea to revert to its initial defaultValue.
🤔 Expected Behavior?
After submitting an action using useActionState, the TextArea should keep displaying the latest updated value, not revert to its initial defaultValue.
😯 Current Behavior
The TextArea temporarily resets to its original defaultValue immediately after form submission.
Once the mouse hovers over the TextArea, it re-renders and shows the correct, updated value.
Reproduction sandbox:
👉 https://codesandbox.io/p/devbox/interesting-lucy-gzqlxl?workspaceId=ws_Eca3EwjBW43oUkcy8VJBbC
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
2025-10-08.23.44.10.mov
- Set an initial value to defaultValue of a TextArea.
- Change the text inside the TextArea.
- Submit the form using useActionState.
- Observe that the TextArea reverts to its initial defaultValue.
- Hover over the TextArea — it re-renders and the changed value appears correctly.
- The issue only occurs when
TextField
andTextArea
are used together. - Works correctly in these cases:
TextField
+Input
combinationTextArea
used alone
Version
1.13.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
macOS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working