mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 06:45:24 +00:00
refac: search modal input filters behaviour
This commit is contained in:
parent
776d4773a9
commit
5b1f9e3e21
1 changed files with 16 additions and 5 deletions
|
|
@ -213,11 +213,14 @@
|
||||||
on:input={() => {
|
on:input={() => {
|
||||||
dispatch('input');
|
dispatch('input');
|
||||||
}}
|
}}
|
||||||
on:focus={() => {
|
on:click={() => {
|
||||||
onFocus();
|
if (!focused) {
|
||||||
hovering = false;
|
onFocus();
|
||||||
focused = true;
|
hovering = false;
|
||||||
initTags();
|
|
||||||
|
focused = true;
|
||||||
|
initTags();
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
on:blur={() => {
|
on:blur={() => {
|
||||||
if (!hovering) {
|
if (!hovering) {
|
||||||
|
|
@ -260,6 +263,14 @@
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// if the user types something, reset to the top selection.
|
// if the user types something, reset to the top selection.
|
||||||
|
if (!focused) {
|
||||||
|
onFocus();
|
||||||
|
hovering = false;
|
||||||
|
|
||||||
|
focused = true;
|
||||||
|
initTags();
|
||||||
|
}
|
||||||
|
|
||||||
selectedIdx = 0;
|
selectedIdx = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue