Unplanned
Last Updated: 11 Oct 2023 06:47 by Fernando
Created by: Fernando
Comments: 0
Category: Form
Type: Feature Request
2
Add the `onChange` event for the KendoReact Form component such that it returns all the data of its fields when there is change in any of them.
Unplanned
Last Updated: 04 Jun 2025 09:03 by Jan
The problem is that we cannot pass an instance of File through the Form initialValues prop. It seems that the form internally clones the initialValues, and this process destroys the File instance, resulting in an empty JS object instead.


The current workaround is to clone the initialValues manually outside the Form component using the standard JS function structuredClone.
 const handleFormRef = useCallback<RefCallback<FormHandle>>(form => {
    if (form) {
        form.values = structuredClone(initialValues);
    }
}, []);

<KendoForm ref={handleFormRef} />