CE-1955 Add guard around a call to onChangeCallback

This commit is contained in:
2024-12-26 19:14:21 -06:00
parent d0201d96e1
commit d793c23861

View File

@ -141,7 +141,10 @@ function QDynamicFormField({
newValue = newValue.toLowerCase();
}
setFieldValue(name, newValue);
onChangeCallback(newValue);
if(onChangeCallback)
{
onChangeCallback(newValue);
}
});
const input = document.getElementById(name) as HTMLInputElement;