fix: restore tooltip display when PopupMenuHandler is unavailable#970
Merged
tbouffard merged 3 commits intomaxGraph:mainfrom Dec 10, 2025
Merged
fix: restore tooltip display when PopupMenuHandler is unavailable#970tbouffard merged 3 commits intomaxGraph:mainfrom
tbouffard merged 3 commits intomaxGraph:mainfrom
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughUse optional chaining when checking PopupMenuHandler in TooltipHandler so tooltips can show when PopupMenuHandler is absent or not showing; remove PopupMenuHandler from the plugins array in the Wires story. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
tbouffard
approved these changes
Dec 10, 2025
Member
tbouffard
left a comment
There was a problem hiding this comment.
LGTM, thanks for your contribution
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



packages/html/stories/Wires.stories.tsby removing the unused PopupMenuHandler and verified now tooltips are correctly displayed.Overview
As described in issue #961 , the current version does not display any tooltip when the plugin PopupMenuHandler is not added to the list of the plugins. This is a common case when BaseGraph is used over Graph (as suggested in the documentation, BaseGraph should always be the choice for production).
The solution now handle this case correctly: when popupMenuHandler is not available (undefined) or the menu is not showing, then the tooltip will be displayed.
To verify that the solution works, use the story "Wires" which has been edited in order to not include the PopupMenuHandler. Tooltips on vertices and edges should now be displayed correctly.
Summary by CodeRabbit
Bug Fixes
Chores
✏️ Tip: You can customize this high-level summary in your review settings.