mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-17 21:00:45 +00:00
CE-1955 Add guard around a call to onChangeCallback
This commit is contained in:
@ -141,7 +141,10 @@ function QDynamicFormField({
|
|||||||
newValue = newValue.toLowerCase();
|
newValue = newValue.toLowerCase();
|
||||||
}
|
}
|
||||||
setFieldValue(name, newValue);
|
setFieldValue(name, newValue);
|
||||||
onChangeCallback(newValue);
|
if(onChangeCallback)
|
||||||
|
{
|
||||||
|
onChangeCallback(newValue);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const input = document.getElementById(name) as HTMLInputElement;
|
const input = document.getElementById(name) as HTMLInputElement;
|
||||||
|
Reference in New Issue
Block a user