mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #539] [MERGED] feat(input): migrate to extend textarea #609
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#609
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/539
Author: @msmps
Created: 1/16/2026
Status: ✅ Merged
Merged: 1/17/2026
Merged by: @kommander
Base:
main← Head:feat/input-migration-20260116100941📝 Commits (7)
0e0a8b3refactor(input): extend textarea0417a5drefactor(input): minor tweaks54560b9refactor(input): improve initial value handling and maxLength enforcement and prevent initial value settera0ad157refactor(input): remove deprecated cursorPosition getter and setter in favor of cursorOffseta81a211Merge branch 'main' into feat/input-migration-20260116100941658cc25Merge branch 'main' into feat/input-migration-20260116100941d7fe746test(input): switch out cursor position property📊 Changes
3 files changed (+216 additions, -439 deletions)
View changed files
📝
packages/core/src/renderables/Input.test.ts(+63 -64)📝
packages/core/src/renderables/Input.ts(+134 -373)📝
packages/core/src/renderables/Textarea.ts(+19 -2)📄 Description
Summary
Refactor
InputRenderableto extendTextareaRenderable, eliminating ~200 lines of duplication.Key changes:
line-home,line-end,backspace,delete)Test Plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.