mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[GH-ISSUE #116] React renderer should unset a node style attribute when it is undefined #27
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#27
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?
Originally created by @remorses on GitHub (Aug 31, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/116
Originally assigned to: @msmps on GitHub.
Currently the React renderer ignores style attributes with value null or undefined here (I think), instead it should somehow unset these properties. Not sure if opentui already has a method for that
github.com/sst/opentui@618e3b372e/packages/react/src/utils/index.ts (L169)Repro, notice how the style does not reset on hover end:
https://github.com/user-attachments/assets/c75777e8-7bd4-4aee-80a0-9a8e66ffa3a7
@msmps commented on GitHub (Aug 31, 2025):
i fixed this recently in the core but only for top level nodes! this must've slipped the net - will look into fixing this