Skip to content

Commit

Permalink
Fix attendee logs nav item active state
Browse files Browse the repository at this point in the history
  • Loading branch information
Gawdl3y committed Jan 7, 2025
1 parent 4c1e260 commit 0271126
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion resources/js/Components/App/AppNavItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,17 @@ const {
const route = useRoute();
const page = usePage();
const isActive = computed(() => active || Boolean(page.url && to && route().current()?.startsWith(to)));
const isActive = computed(
() =>
active ||
Boolean(
page.url &&
to &&
route()
.current()
?.includes(to.replace(/\.index$/, '')),
),
);
const isButton = toRef(() => !to || method !== 'get');
/**
Expand Down

0 comments on commit 0271126

Please sign in to comment.