yaminncco / vue-sidebar-menu

A Vue.js Sidebar Menu Component
MIT License
646 stars 194 forks source link

Active menu is not working for child route using Inertia redirect #253

Closed sivabhargavib closed 1 year ago

sivabhargavib commented 1 year ago

I'm using Laravel 8 + inertia + vue 3 The active menu is not working for the nested links.

/users => I want to make it "active" /users/1/edit ==> current

I tried the custom link in main.js. Its not working import { createApp, h } from "vue"; const customLink = { name: 'CustomLink', props: ['item'], render() { return h('a', this.$slots.default()) } }

const app = createApp({}); app.component('custom-link', customLink)

yaminncco commented 1 year ago

This might help https://github.com/yaminncco/vue-sidebar-menu/issues/217#issuecomment-1030840475

sivabhargavib commented 1 year ago

This might help #217 (comment)

Thanks. its working