Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Components freeze after Livewire Navigate


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>


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


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();
});


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(