mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-24 17:32:18 +00:00
The TerminalContextMenu component previously returned different JSX structures based on rightClickBehavior setting: - context-menu mode: <ContextMenu> wrapper - other modes: <div> wrapper This caused React to unmount and remount the entire Terminal subtree when the setting changed, destroying the xterm instance and causing a black screen. Fix: Always use <ContextMenu> as the wrapper to maintain consistent React tree structure. Control behavior via: - disabled prop on ContextMenuTrigger - onContextMenu handler for non-menu modes - Conditional rendering of ContextMenuContent Co-Authored-By: Claude <noreply@anthropic.com>