i'am using metronic 8.2.3 demo 39
when i click menu with attribute wire:navigate
dropdown menu in sidebar and header such as notification, profile can't click or show
how can i fix it ?
i have watch this:
https://www.youtube.com/watch?v=gkDq2E6g0F0
this is my sidebar :
Sidebar Code
this is my javascript :
<script>
document.addEventListener('DOMContentLoaded', () => {
console.log('dom loaded');
});
document.addEventListener('livewire:navigated', () => {
console.log('navigated');
KTComponents.init()
KTMenu.init();
})
document.addEventListener("livewire:load", function () {
Livewire.on("mount", function () {
KTMenu.init();
});
});
</script>
Great solution! I hope this can help others facing similar issues as well.
I'm glad that you were able to resolve the issue! Your solution could be helpful for others facing similar issues. If you have any more questions or need further assistance, please don't hesitate to ask.
May I know, how you add data-navigate-once to the script?
i have fix this issue
you can close this ticket
i have add data-navigate-once to script
and also add this code
document.addEventListener('livewire:navigated', () => {
KTMenu.init = function () {
KTMenu.createInstances();
KTMenu.initHandlers();
};
KTMenu.init();
});