Skip to content
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

fix: use result of onShow callback in TooltipPopoverCombo #762

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maxinteger
Copy link
Collaborator

Description

Passing the result of the custom (popover and tooltip) onShow result to tippy as expected.

Links

https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-623004

@maxinteger maxinteger added the validated If the pull request is validated automation. label Mar 3, 2025
Copy link
Collaborator

@dominiccarrington dominiccarrington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onHide can also be cancelled: https://atomiks.github.io/tippyjs/v5/lifecycle-hooks/#onhide. Can we add the same checks there as well?

question: instead of onShow / onHide, should we use different events that won't be cancelled like onMount / onHidden? These do fire at a slightly different point in the lifecycle.

@maxinteger
Copy link
Collaborator Author

@dominiccarrington

I avoided onHide because it is not relevant for my use case, but you are right, we should have it at least for consistency

Not sure why we picked onShow/onHide instead of onMount/onUnmount, but for me cancelation is feature which I need to solve a problem in the app.

Passing the result of the custom (popover and tooltip) onShow/onHide
result to tippy as expected.

issue: https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-623004
@maxinteger maxinteger force-pushed the fix/SPARK-623004-use-result-of-on-show-callback branch from 9d3d3f5 to eb9bee3 Compare March 4, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validated If the pull request is validated automation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants