diff --git a/htdocs/js/apps/Knowls/knowl.js b/htdocs/js/apps/Knowls/knowl.js index bdfcbac8c4..57b8388a40 100644 --- a/htdocs/js/apps/Knowls/knowl.js +++ b/htdocs/js/apps/Knowls/knowl.js @@ -15,6 +15,11 @@ }; const initializeKnowl = (knowl) => { + if (getComputedStyle(knowl)?.display === '') { + setTimeout(() => initializeKnowl(knowl), 100); + return; + } + knowl.dataset.bsToggle = 'collapse'; if (!knowl.knowlContainer) { knowl.knowlContainer = document.createElement('div');