Skip to content

Commit 09f8f44

Browse files
committed
Fix dropdown menu widget showing wrong active entry
Fixes #250
1 parent 131256b commit 09f8f44

File tree

1 file changed

+2
-6
lines changed
  • client/web/src/components/widgets/floating-menus

1 file changed

+2
-6
lines changed

client/web/src/components/widgets/floating-menus/MenuList.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
v-for="(entry, entryIndex) in section"
77
:key="entryIndex"
88
class="row"
9-
:class="{ open: isMenuEntryOpen(entry), active: entry === currentEntry }"
9+
:class="{ open: isMenuEntryOpen(entry), active: entry === activeEntry }"
1010
@click="handleEntryClick(entry)"
1111
@mouseenter="handleEntryMouseEnter(entry)"
1212
@mouseleave="handleEntryMouseLeave(entry)"
@@ -23,10 +23,7 @@
2323
v-if="entry.children"
2424
:direction="MenuDirection.TopRight"
2525
:menuEntries="entry.children"
26-
v-model:active-entry="currentEntry"
27-
:minWidth="minWidth"
28-
:drawIcon="drawIcon"
29-
:scrollable="scrollable"
26+
v-bind="{ defaultAction, minWidth, drawIcon, scrollable }"
3027
:ref="(ref) => setEntryRefs(entry, ref)"
3128
/>
3229
</div>
@@ -248,7 +245,6 @@ const MenuList = defineComponent({
248245
},
249246
data() {
250247
return {
251-
currentEntry: this.activeEntry,
252248
keyboardLockInfoMessage: keyboardLockApiSupported() ? KEYBOARD_LOCK_USE_FULLSCREEN : KEYBOARD_LOCK_SWITCH_BROWSER,
253249
SeparatorDirection,
254250
SeparatorType,

0 commit comments

Comments
 (0)