mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-06 02:48:04 +00:00
fix: don't bring up the keyboard when menus open or close on mobile (#31657)
This commit is contained in:
parent
aee7c47277
commit
e797a44806
2 changed files with 6 additions and 3 deletions
|
|
@ -2330,8 +2330,10 @@
|
|||
onClose={async () => {
|
||||
await tick();
|
||||
|
||||
const chatInput = document.getElementById('chat-input');
|
||||
chatInput?.focus();
|
||||
if (!$mobile) {
|
||||
const chatInput = document.getElementById('chat-input');
|
||||
chatInput?.focus();
|
||||
}
|
||||
}}
|
||||
>
|
||||
<button
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<script lang="ts">
|
||||
import { flyAndScale } from '$lib/utils/transitions';
|
||||
import { tick } from 'svelte';
|
||||
import { mobile } from '$lib/stores';
|
||||
|
||||
/** Whether the dropdown is open */
|
||||
export let show = false;
|
||||
|
|
@ -275,7 +276,7 @@
|
|||
if (show) {
|
||||
closeDropdown();
|
||||
} else {
|
||||
openDropdown(true);
|
||||
openDropdown(!$mobile);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue