Skip to content

Commit a5d5027

Browse files
committed
fix: remove disabled state for actions in three dots menu, when there is no active checkboxes
1 parent c7a05c5 commit a5d5027

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

adminforth/spa/src/components/ThreeDotsMenu.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@
1616
<ul class="py-2 text-sm text-lightThreeDotsMenuBodyText dark:text-darkThreeDotsMenuBodyText" aria-labelledby="dropdownMenuIconButton">
1717
<li v-for="item in threeDotsDropdownItems" :key="`dropdown-item-${item.label}`">
1818
<a href="#"
19-
class="block px-4 py-2 hover:bg-lightThreeDotsMenuBodyBackgroundHover hover:text-lightThreeDotsMenuBodyTextHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover"
20-
:class="{
21-
'pointer-events-none': !checkboxes.length,
22-
'opacity-50': !checkboxes.length,
23-
'cursor-not-allowed': !checkboxes.length,
24-
}">
19+
class="block px-4 py-2 hover:bg-lightThreeDotsMenuBodyBackgroundHover hover:text-lightThreeDotsMenuBodyTextHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover"
20+
>
2521
<component :is="getCustomComponent(item)"
2622
:meta="item.meta"
2723
:resource="coreStore.resource"

0 commit comments

Comments
 (0)