diff --git a/components/lib/config/PrimeVue.js b/components/lib/config/PrimeVue.js index 6d1f29504..de1f40376 100644 --- a/components/lib/config/PrimeVue.js +++ b/components/lib/config/PrimeVue.js @@ -161,13 +161,13 @@ function switchTheme(currentTheme, newTheme, linkElementId, callback) { const linkElement = document.getElementById(linkElementId); const cloneLinkElement = linkElement.cloneNode(true); const newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme); - + cloneLinkElement.setAttribute('id', linkElementId + '-clone'); cloneLinkElement.setAttribute('href', newThemeUrl); cloneLinkElement.addEventListener('load', () => { linkElement.remove(); cloneLinkElement.setAttribute('id', linkElementId); - + if (callback) { callback(); }