Prevent crashes in combo boxes
This commit is contained in:
parent
802c4cd556
commit
0ce708028d
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ export function useDeferredSubmit(input) {
|
|||
const calledRef = useRef(false);
|
||||
const awaitFormSubmit = useCallback(
|
||||
(callback) => {
|
||||
const form = input.form;
|
||||
const form = input?.form;
|
||||
if (!form) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue