mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
fix(a11y): opening a filter list with the mouse also moves focus to its options (#33352)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { flyAndScale } from '$lib/utils/transitions';
|
||||
import { tick } from 'svelte';
|
||||
import { mobile } from '$lib/stores';
|
||||
import DropdownMenu from '$lib/components/common/DropdownMenu.svelte';
|
||||
|
||||
/** Currently selected value */
|
||||
@@ -161,7 +162,7 @@
|
||||
class="focus-ring {triggerClass}"
|
||||
type="button"
|
||||
aria-expanded={open}
|
||||
on:click={() => toggleOpen()}
|
||||
on:click={() => toggleOpen(!$mobile)}
|
||||
on:keydown={handleTriggerKeydown}
|
||||
>
|
||||
<slot name="trigger" {selectedLabel} {open}>
|
||||
|
||||
Reference in New Issue
Block a user