Skip to content

Commit d5311d0

Browse files
committed
fix: add setComponentRef function to manage dropdown item references
1 parent fdfbfac commit d5311d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

adminforth/spa/src/components/ThreeDotsMenu.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ const props = defineProps({
107107
108108
const emit = defineEmits(['startBulkAction']);
109109
110+
function setComponentRef(el: ComponentPublicInstance | null, index: number) {
111+
if (el) {
112+
threeDotsDropdownItemsRefs.value[index] = el;
113+
}
114+
}
115+
110116
async function handleActionClick(action: AdminForthActionInput, payload: any) {
111117
adminforth.list.closeThreeDotsDropdown();
112118

0 commit comments

Comments
 (0)