I have a button with a Bootstrap 5 tooltip which when clicked opens a modal.
The tooltip is displayed correctly when the mouse is over the button and when the button is clicked, the modal opens correctly and the tooltip is no longer displayed. However when the modal closes, the tooltip reappears.
I'd prefer that the tooltip does not appear after the modal closes, any suggestions on how to do that?
If anyone is using
UncontrolledTooltipfromreactstrap, the solution is simply addtrigger={"hover"}(the default is"hover focus"). Focus returned by modal close is what's causing the issue for me.If you're not using
UncontrolledTooltipfromreactstrap, maybe the focus issue can guide as a hint, as maybe that's also what's causing the issue on your side.