mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #739] [MERGED] fix crash on mouse hover of a destroyed renderable #748
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#748
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/739
Author: @justfortheloveof
Created: 2/24/2026
Status: ✅ Merged
Merged: 3/1/2026
Merged by: @simonklee
Base:
main← Head:fix-mouse-over📝 Commits (3)
3ecdba4fix crash on mouse hover of a destroyed renderable3ed532cadd regression test for mouse out fired on destroyed renderable608d777fix destroyed renderable crash in handleMouseData mouse out path📊 Changes
2 files changed (+77 additions, -2 deletions)
View changed files
📝
packages/core/src/renderer.ts(+6 -2)📝
packages/core/src/tests/renderer.mouse.test.ts(+71 -0)📄 Description
Fixes #738
Tested in my TUI, see the line with
// HACK:where I added:Without this guard, we crash in the scenario described in #738 . With the guard, we don't.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.