mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 23:00:53 -05:00
fix: don't bring up the keyboard when menus open or close on mobile (#31657)
This commit is contained in:
2 files changed
+6
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user