mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-16 09:41:23 +00:00
fix(a11y): opening a filter list with the mouse also moves focus to its options (#33352)
This commit is contained in:
parent
6e569978d9
commit
e56bd11957
1 changed files with 2 additions and 1 deletions
|
|
@ -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}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue