Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| key={`${label}-${depth}-${index}`} | ||
| className="relative" | ||
| onMouseEnter={() => setActiveSubmenu({ depth, index })} | ||
| onMouseLeave={() => setActiveSubmenu(prev => (prev?.depth === depth && prev.index === index ? null : prev))} | ||
| > |
There was a problem hiding this comment.
Submenus collapse when hovering child items
Hovering into a nested menu immediately removes the submenu, making its actions impossible to click. Each list item overwrites activeSubmenu with its own {depth, index} on hover (shown here) while submenu rendering later is gated by isSubmenuActive matching the parent’s depth; as soon as the pointer enters a child item the parent no longer matches and its submenu unmounts, so the new Table submenu in the rich text context menu disappears before any child action can be selected.
Useful? React with 👍 / 👎.
Summary
Testing
Codex Task