Hello Metronic Support Team,
I am using the Metronic Tailwind version with KTUI in a Blazor Server project. I have encountered an issue where:
Sidebar menu toggles and dropdown menus work on the first click but stop responding afterwards.
This occurs even without navigating to a new page.
I suspect it is related to KTUI’s event listeners being detached when Blazor re-renders the DOM.
I have tried re-initializing KTMenu.init() and KTDropdown.init() using JavaScript after the first click and using a MutationObserver, but the issue persists.
Could you provide guidance or a recommended approach to make KTUI components fully compatible with Blazor Server’s lifecycle? Specifically, I need all menus, dropdowns, and toggles to remain functional after any Blazor re-render.
Thank you for your assistance.
Best regards,
Hi,
We have double-checked this issue in the latest version, and the menus and dropdowns are working as expected.
Could you please provide specific steps to reproduce the problem?
Regards,
Lauris Stepanovs,
Keenthemes Support Team