adminforth 3.17.1 → 3.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@
29
29
  'opacity-50': checkboxes && checkboxes.length === 0 && item.meta?.disabledWhenNoCheckboxes,
30
30
  'cursor-not-allowed': checkboxes && checkboxes.length === 0 && item.meta?.disabledWhenNoCheckboxes,
31
31
  }"
32
- @click="injectedComponentClick(i)"
32
+ @click="injectedComponentClick(i, $event)"
33
33
  >
34
34
  <div class="wrapper" v-if="getCustomComponent(item)">
35
35
  <component
@@ -47,7 +47,7 @@
47
47
  <li v-for="(action, i) in customActions" :key="action.id">
48
48
  <div
49
49
  class="wrapper"
50
- @click="injectedComponentClick(threeDotsDropdownItems ? threeDotsDropdownItems.length + i : i)"
50
+ @click="injectedComponentClick(threeDotsDropdownItems ? threeDotsDropdownItems.length + i : i, $event)"
51
51
  >
52
52
  <component
53
53
  :ref="(el: any) => setComponentRef(el, threeDotsDropdownItems ? threeDotsDropdownItems.length + i : i)"
@@ -176,8 +176,11 @@ function startBulkAction(actionId: string) {
176
176
  showDropdown.value = false;
177
177
  }
178
178
 
179
- async function injectedComponentClick(index: number) {
180
- console.log('Injected component click triggered for index:', index);
179
+ async function injectedComponentClick(index: number, event?: MouseEvent) {
180
+ if (event?.defaultPrevented) {
181
+ showDropdown.value = false;
182
+ return;
183
+ }
181
184
  const componentRef = threeDotsDropdownItemsRefs.value[index];
182
185
  if (componentRef && 'click' in componentRef) {
183
186
  (componentRef as any).click?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "3.17.1",
3
+ "version": "3.17.2",
4
4
  "description": "OpenSource Agent-Native forth-generation admin panel",
5
5
  "keywords": [
6
6
  "adminforth",