Form onFormReset no longer works

1 Answer 59 Views
Form
Sanja Tolo
Top achievements
Rank 1
Iron
Iron
Sanja Tolo asked on 11 Jan 2024, 09:47 AM | edited on 11 Jan 2024, 10:00 AM

Hello,

After updating to 7.0.2 all my kendo react packages i have noticed that my form don't reset  values in fields when calling formRenderProps.onFormReset(). Previously on versions 5.19.0 it worked like a charm, i would just call onFormReset and all values would be cleared in all the fields.

I have managed to solve the issue with the key state but it feels like a hack and a workaround since that triggers a rerender and there is a function built in to solve that. I also don't like the ref approach because I can't type the ref in TS. All in all, the best would be if formRenderProps.onFormReset would work like before and clear all the values in all the fields.

Here is demo from your page with all 7.0.2 and it doesn't clear the values:

Form 7.0.2

Here is same example i just changed the @progress/kendo-react-form to version: 5.19.0 and it clears the values:

Form 5.19.0

Best regards.

1 Answer, 1 is accepted

Sort by
0
Accepted
Wissam
Telerik team
answered on 15 Jan 2024, 07:24 AM

Hi, Sanja,

Thank you for reporting this regression bug.

Indeed the `fieldRenderProps.onFormReset` method stopped working after version `7.0.0` where in `6.1.1` and the older versions this was working. Apologies for the inconvenience caused to you by this bug.

I logged a GitHub item for it, and since it is a regression, it is among the bugs with the highest priority, you can track it here:

As a workaround until this bug is fixed, the only thing I can suggest would be to use the `6.1.1` version of the Form package.

In addition, I updated your Telerik Points accordingly as a small token of gratitude for your report.

If you have any further questions on this matter, please let me know.

Regards,
Wissam
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Form
Asked by
Sanja Tolo
Top achievements
Rank 1
Iron
Iron
Answers by
Wissam
Telerik team
Share this question
or