Skip to content

Commit

Permalink
fix element selected even though undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Jul 23, 2023
1 parent 90235fa commit a4c8bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/radix-vue/src/Menubar/MenubarTrigger.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const dataState = computed(() => {
const highlightedState = computed(() => {
return (
activeElement.value === currentElement.value ||
(activeElement.value && activeElement.value === currentElement.value) ||
(rootInjectedValue?.triggerElement.value === currentElement.value &&
rootInjectedValue?.selectedElement.value)
);
Expand Down

0 comments on commit a4c8bef

Please sign in to comment.