mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #662] [CLOSED] feat(react): support textarea onInput callbacks #694
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#694
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/662
Author: @remorses
Created: 2/10/2026
Status: ❌ Closed
Base:
main← Head:fix-textarea-oninput📝 Commits (2)
ad7b5a6feat(react): support textarea onInput callbacks5c43e8brefactor(react): decouple textarea onInput from onContentChange📊 Changes
3 files changed (+94 additions, -0 deletions)
View changed files
📝
packages/react/src/types/components.ts(+1 -0)📝
packages/react/src/utils/index.ts(+24 -0)➕
packages/react/tests/textarea-events.test.tsx(+69 -0)📄 Description
What
onInputsupport for React<textarea>.Why
onInputwas mapped for<input>but not<textarea>.onContentChange+ref.current?.plainText, which is easy to make stale in app update flows (we hit this while fixing critique dropdown search).Scope
onInputlistens toeditBuffercontent-changed.onContentChange.Tests
packages/react/tests/textarea-events.test.tsx.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.