fix(combobox): form submission when form has combobox and input file without file selected
This commit is contained in:
parent
a40c39fc9c
commit
efea44b9ba
1 changed files with 5 additions and 2 deletions
|
@ -17,8 +17,11 @@ export function useDeferredSubmit(input?: HTMLInputElement): {
|
|||
runCallback();
|
||||
|
||||
if (
|
||||
!Array.from(form.elements).some((e) =>
|
||||
e.hasAttribute('data-direct-upload-url')
|
||||
!Array.from(form.elements).some(
|
||||
(e) =>
|
||||
e.hasAttribute('data-direct-upload-url') &&
|
||||
'value' in e &&
|
||||
e.value != ''
|
||||
)
|
||||
) {
|
||||
form.submit();
|
||||
|
|
Loading…
Reference in a new issue