Skip to content

Commit 59eccdd

Browse files
committed
fix: fix incorrect HTML generation when passing bulk actions to three dots menu
1 parent 6145aa8 commit 59eccdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adminforth/spa/src/components/ThreeDotsMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
</div>
3636
</a>
3737
</li>
38-
<li v-if="checkboxes.length" v-for="action in bulkActions" :key="action.id">
39-
<a v-if="action.showInThreeDotsDropdown===true" href="#" @click.prevent="startBulkAction(action.id)" class="block px-4 py-2 hover:text-lightThreeDotsMenuBodyTextHover hover:bg-lightThreeDotsMenuBodyBackgroundHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover">
38+
<li v-if="checkboxes.length" v-for="action in bulkActions.filter(a => a.showInThreeDotsDropdown)" :key="action.id">
39+
<a href="#" @click.prevent="startBulkAction(action.id)" class="block px-4 py-2 hover:text-lightThreeDotsMenuBodyTextHover hover:bg-lightThreeDotsMenuBodyBackgroundHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover">
4040
<div class="flex items-center gap-2">
4141
<component
4242
v-if="action.icon"

0 commit comments

Comments
 (0)