mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-03 02:23:51 +00:00
fix: block saving a prompt's input form when a required dropdown has no option chosen (#30078)
This commit is contained in:
parent
3fbc39a9dc
commit
25948ea213
1 changed files with 1 additions and 0 deletions
|
|
@ -125,6 +125,7 @@
|
|||
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden border border-gray-100/30 dark:border-gray-850/30"
|
||||
bind:value={variableValues[variable]}
|
||||
id="input-variable-{idx}"
|
||||
required={variables[variable]?.required ?? false}
|
||||
>
|
||||
<option value="" disabled>
|
||||
{variables[variable]?.placeholder ?? $i18n.t('Select an option')}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue