Skip to content

Commit 61d071e

Browse files
committed
IBX-11245: [DAM] Asset library widget is broken
1 parent 9654b21 commit 61d071e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ const observerConfig = {
2323
attributes: true,
2424
attributeFilter: ['title', 'data-tooltip-title', 'data-tooltip-extra-class', 'data-tooltip-manual-reparsing'],
2525
};
26-
const bootstrap = getBootstrap();
2726
const resizeEllipsisObserver = new ResizeObserver((entries) => {
2827
entries.forEach((entry) => {
2928
parse(entry.target);
3029
});
3130
});
3231
const observer = new MutationObserver((mutationsList) => {
32+
const bootstrap = getBootstrap();
33+
3334
mutationsList.forEach((mutation) => {
3435
const { type, target, addedNodes, removedNodes } = mutation;
3536

@@ -143,6 +144,7 @@ const getContainer = (tooltipNode) => {
143144
return container ?? doc.body;
144145
};
145146
const initializeTooltip = (tooltipNode, hasEllipsisStyle) => {
147+
const bootstrap = getBootstrap();
146148
const {
147149
delay: defaultDelay,
148150
placement: defaultPlacement,
@@ -192,6 +194,7 @@ const parse = (baseElement = doc) => {
192194
return;
193195
}
194196

197+
const bootstrap = getBootstrap();
195198
const tooltipNodes = [...baseElement.querySelectorAll(TOOLTIPS_SELECTOR)];
196199

197200
if (baseElement instanceof Element) {
@@ -247,6 +250,7 @@ const hideAll = (baseElement = doc) => {
247250
return;
248251
}
249252

253+
const bootstrap = getBootstrap();
250254
const tooltipsNode = baseElement.querySelectorAll(TOOLTIPS_SELECTOR);
251255

252256
for (const tooltipNode of tooltipsNode) {

0 commit comments

Comments
 (0)