File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
adminforth/spa/src/components Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1212
1313 <!-- Dropdown menu -->
1414 <div
15- v-if =" showDropdown"
1615 ref =" dropdownRef"
16+ :class =" {'hidden': !showDropdown, 'block': showDropdown }"
1717 class =" absolute z-30 right-0 mt-3 bg-lightThreeDotsMenuBodyBackground divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-darkThreeDotsMenuBodyBackground dark:divide-gray-600" >
1818 <ul class =" py-2 text-sm text-lightThreeDotsMenuBodyText dark:text-darkThreeDotsMenuBodyText" aria-labelledby =" dropdownMenuIconButton" >
1919 <li v-for =" (item, i) in threeDotsDropdownItems" :key =" `dropdown-item-${i}`" >
@@ -174,13 +174,15 @@ async function handleActionClick(action: AdminForthActionInput, payload: any) {
174174function startBulkAction(actionId : string ) {
175175 adminforth .list .closeThreeDotsDropdown ();
176176 emit (' startBulkAction' , actionId );
177+ showDropdown .value = false ;
177178}
178179
179180async function injectedComponentClick(index : number ) {
180181 const componentRef = threeDotsDropdownItemsRefs .value [index ];
181182 if (componentRef && ' click' in componentRef ) {
182183 (componentRef as any ).click ?.();
183184 }
185+ showDropdown .value = false ;
184186}
185187
186188function toggleDropdownVisibility() {
You can’t perform that action at this time.
0 commit comments