Skip to content

Commit

Permalink
fix(NavigationMenu): enforce data-orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Nov 6, 2024
1 parent 3c443c6 commit 64ad4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/NavigationMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const lists = computed(() => props.items?.length ? (Array.isArray(props.items[0]
</slot>
</DefineItemTemplate>

<NavigationMenuRoot v-bind="rootProps" :class="ui.root({ class: [props.class, props.ui?.root] })">
<NavigationMenuRoot v-bind="rootProps" :data-orientation="orientation" :class="ui.root({ class: [props.class, props.ui?.root] })">
<template v-for="(list, listIndex) in lists" :key="`list-${listIndex}`">
<NavigationMenuList :class="ui.list({ class: props.ui?.list })">
<component
Expand Down

0 comments on commit 64ad4b6

Please sign in to comment.