I am currently using a demo version 23 from HTML to Vue.js, but there is an issue with the user menu that cannot be clicked or hovered over. I have already executed KTMenu.init() in the user menu component, and there is no error, but the menu still does not appear. Thank you.
Hi Shidiq Nugraha,
Thank you for reaching out to us.
In our HTML version we initialize our components inside load
event, in SPA versions content is rendered differently and to use our js components you need to move initialization from load
event to onMounted
function.
All components in the HTML version are initialized in js/components/_init.js, you can move this initialization into onMounted
as shown below.
onMounted(() => {
nextTick(() => {
KTComponents.init();
});
});