-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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 tooltip hide method when already hidden #31115
Conversation
I wonder if we have more cases like this one? |
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.
Can you add a unit test please ?
I'm more concerned about listening to a modal hiding in our tooltip component, for me we shouldn't do that @XhmikosR |
Also, true. Does this code come from v4? You rewrote most of v5's JS code :) |
Yep it comes from our v4 |
It makes sense why it's there (if that's what you're questioning), since it's a bit awkward that if you open a popover/tooltip and then close the modal. but I'm not sure if it makes more sense to look for tooltips in the modal code, or listen for modal closing in the tooltip code. |
That's the reason yes, but is it really a good thing ? IMO it should be handled by our users to delete their tooltip if needed |
Perhaps. |
Anyway you fix is good @Hiws but can you add a unit test please ? |
I think the test should be in modal not in tooltip :) |
Ii feel like this case isn't specifically tied to modals, but the tooltip's |
The error your patch fixes is in modal.js so that's where it should be tested that we don't throw. |
NVM, you are right, I need to sleep. |
I'll take part of the blame for having a bad title 😉 |
just my last comment and we are good to go here @Hiws thanks for your work 👍 |
Before merge, or alpha 2, use on child component
|
Sorry for being out of the loop, what's the status of this one? |
Pulling from Alpha 2 given unclear status. |
We are waiting for @Hiws to do a last change and rebase his branch |
Sorry for the delay. I'm not quite sure what you mean with |
You're right it was good like that thanks 👌 Edit: Since everything is good it should land in Alpha 2 |
Co-authored-by: XhmikosR <[email protected]>
Fixes the error displayed when closing a modal with a tooltip that was never shown.
Closes: #31110