From 8aee4421a05ba109ff6a5a942ba9968fcd4668c6 Mon Sep 17 00:00:00 2001 From: dragosct10 Date: Thu, 19 Dec 2024 11:01:23 +0200 Subject: [PATCH] feat: add cleanup functions popover, tooltip --- packages/src/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/src/index.js b/packages/src/index.js index 3f1f74c..861c360 100644 --- a/packages/src/index.js +++ b/packages/src/index.js @@ -2,8 +2,8 @@ import { loadPopperJs } from './utils/loadPopper.js'; // Import components import { initDropdowns } from './dropdown/dropdown.js'; -import { initPopovers } from './popover/popover.js'; -import { initTooltips } from './tooltip/tooltip.js'; +import { initPopovers, cleanupPopovers } from './popover/popover.js'; +import { initTooltips, cleanupTooltips } from './tooltip/tooltip.js'; import { initAlert } from './alert/alert.js'; import { initCollapse } from './collapse/collapse.js'; import { initTabs } from './tabs/tabs.js'; @@ -15,7 +15,9 @@ export { initCollapse, initDropdowns, initPopovers, + cleanupPopovers, initTooltips, + cleanupTooltips, initTabs, initModal }; @@ -26,7 +28,9 @@ const DavidAI = { initCollapse, initDropdowns, initPopovers, + cleanupPopovers, initTooltips, + cleanupTooltips, initTabs, initModal };