Prevent crashes in combo boxes

This commit is contained in:
Paul Chavard 2021-07-06 15:06:38 +02:00
parent 802c4cd556
commit 0ce708028d

View file

@ -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;
}