-
Notifications
You must be signed in to change notification settings - Fork 199
fix: restore tooltip display when PopupMenuHandler is unavailable #970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your contribution



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.