Modals that include tooltip/popover throws error on close
Created by: Hiws
A modal with a tooltip/popover throws an error on close, if the tooltip/popover wasn't shown while the modal was open.
Uncaught TypeError: Cannot read property 'destroy' of null
Steps to reproduce:
- Go to modal w/ tooltip example
- Open dev console (i used chrome on windows)
- Open the modal, and close it again.
- Notice 3 errors in the console.
- Open the modal again, hover the one of the links to show a tooltip.
- Close the modal again.
- Notice only 2 errors are displayed in the console now, since one tooltip was shown.
The error isn't limited to the docs. Codepen example