Conversation
|
I wonder if we have more cases like this one? |
Johann-S
left a comment
There was a problem hiding this comment.
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 <xhmikosr@gmail.com>
Fixes the error displayed when closing a modal with a tooltip that was never shown.
Closes: #31110