<img src="https://i.imgur.com/9Yvliwa.png" alt="KTComponents.init() don't successfully initialize in Svelte ðª" />
Hi,
Please try to call it after the layout's HTML code is populated.
May I know which Metronic version are you using? Could you please please provide us a test link to your page via a private reply ? We will need to check your code online in order to advise you further.
Regards.
I've resolved the above issue, but do I have to call KTComponents.init() every time the DOM get updated?
Hi,
Yes, whenever DOM is updated, if there is any newly populated and uninitialized component, the init function just picks it up and initializes once.
Regards.