Skip to content

Commit 5a81b75

Browse files
authored
make sure the popperInstance is destroyed (#2960)
To clean up its internal stuff, fixes: #2959
1 parent c363583 commit 5a81b75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/display/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ export default class Display {
547547
*/
548548
_dispose() {
549549
document.removeEventListener('click', this._documentClickEvent);
550+
if (this._popperInstance) this._popperInstance.destroy();
550551
if (!this.widget) return;
551552
this.widget
552553
.querySelectorAll('[data-action]')

0 commit comments

Comments
 (0)