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 calledRef = useRef(false);
|
||||||
const awaitFormSubmit = useCallback(
|
const awaitFormSubmit = useCallback(
|
||||||
(callback) => {
|
(callback) => {
|
||||||
const form = input.form;
|
const form = input?.form;
|
||||||
if (!form) {
|
if (!form) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue