mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
49d54c5821
commit
7b0b16ebbd
1 changed files with 6 additions and 1 deletions
|
|
@ -44,7 +44,12 @@
|
||||||
: ' text-gray-500 dark:text-gray-400'}"
|
: ' text-gray-500 dark:text-gray-400'}"
|
||||||
type="button"
|
type="button"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
|
if (value === item.value) {
|
||||||
|
value = null;
|
||||||
|
} else {
|
||||||
value = item.value;
|
value = item.value;
|
||||||
|
}
|
||||||
|
|
||||||
open = false;
|
open = false;
|
||||||
onChange(value);
|
onChange(value);
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue