Hi,
We have faced an issue when the page is directly loaded from url or reloaded and has a button to a Drawer or Stepper component, sometimes it does nothing when we click on it. We have to navigate away and back for it to work. How could this be fixed?
Thank you for your help!
Hi,
Try to create a separate small component with these buttons, and try to add the next code in this component:useEffect(() => {
MenuComponent.reinitialization() // import from _metronic/assets/ts/components
}, [])
Regards,
Keenthemes support
Hi Carmelo,
Thanks for your reply. I did what you said, but when I reload, the button doesn't activate the drawer. Once I navigate somewhere and back, it works again like before. It seems this didn't change the behaviour.
What could be the issue?
Thanks!
p.s.: The drawer component is located in the parent component of the button.
I found the issue:
For the drawer, I had to use: DrawerComponent.reinitialization()
and now it works!
Thank you for your help!
Nice to see that you found the working solution.
Regards,
Keenthemes support