mirror of
https://github.com/modrinth/code.git
synced 2026-08-30 11:36:05 +00:00
fix moderation advanced filters
This commit is contained in:
@@ -107,6 +107,7 @@
|
||||
]"
|
||||
:style="[dropdownStyle, { transformOrigin: dropdownTransformOrigin }]"
|
||||
:role="listbox ? 'listbox' : 'menu'"
|
||||
@pointerdown.stop
|
||||
@mousedown.stop
|
||||
@keydown="handleDropdownKeydown"
|
||||
>
|
||||
|
||||
@@ -158,6 +158,7 @@
|
||||
class="fixed z-[9999] flex flex-col overflow-x-hidden overflow-y-auto rounded-[14px] border border-solid border-surface-5 bg-surface-4 shadow-2xl"
|
||||
:style="addMenuStyle"
|
||||
role="menu"
|
||||
@pointerdown.stop
|
||||
@mousedown.stop
|
||||
@keydown="handleAddMenuKeydown"
|
||||
@mousemove="(event) => handleMenuMouseMove(event, 'menu')"
|
||||
|
||||
@@ -119,6 +119,7 @@
|
||||
:style="dropdownStyle"
|
||||
role="listbox"
|
||||
aria-multiselectable="true"
|
||||
@pointerdown.stop
|
||||
@mousedown.stop
|
||||
@keydown="handleDropdownKeydown"
|
||||
>
|
||||
|
||||
@@ -146,6 +146,7 @@ export function useAnchoredTeleport(
|
||||
function handlePointerDown(event: PointerEvent) {
|
||||
const target = event.target as Node | null
|
||||
if (!target || triggerElement()?.contains(target) || panel.value?.contains(target)) return
|
||||
if (document.getElementById('teleports')?.contains(target)) return
|
||||
close()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user