Hello i want to make form on drawer on vue.
My first URL is => localhost:232/clubs this url show lists club.
And then when i clik edit i want to make drawer show and push the url like
=> localhost:232/clubs/edit/1
When i refresh url => localhost:232/clubs/edit/1 how to keep drawer show.
Hi,
Thank you for reaching out to us.
Unfortunately, in our Vue theme there is no way to keep the drawer open after page refresh the components get initialized after every page refresh which will cause drawer to close.
The solution that might work for you is to open drawer right after component initialization.
Here is an example of how you can open drawer programmatically:
onMounted(() => {
setTimeout(() => {
if (yourCondition) {
const drawerInstance = DrawerComponent.getInstance("kt_activities");
drawerInstance?.show();
}
}, 100);
});