Merge pull request #6323 from tchak/fix-autocomplete-errors
Correction d'une erreur Javascript lors de l'auto-remplissage des menus déroulants (#6323)
This commit is contained in:
commit
cedef676b0
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…
Reference in a new issue