kendo-react icon indicating copy to clipboard operation
kendo-react copied to clipboard

[Bug][Form] onSubmitClick does is not executed when having an invalid dropdown component

Open WissamProgress opened this issue 1 year ago • 0 comments

I'm submitting a...

  • Bug report

Current behavior

The onSubmitClick should be executed even when all the fields are invalid. This is how it is described in the API: Called every time the user presses the Submit button. Useful in advanced scenarios when you need to handle every submit event, even when the form is invalid or not modified state.

However, when having a component from the @progress/kendo-react-dropdowns packages like the DropDownList, the event is not fired.

https://stackblitz.com/edit/react-xbpuuf-cnhpt5?file=app%2Fmain.jsx

Expected behavior

The onSubmitClick event is always fired. This is the case when only rendering Inputs.

https://stackblitz.com/edit/react-xbpuuf-rybs1l?file=app%2Fmain.jsx

Minimal reproduction of the problem with instructions

  1. Open this example - https://stackblitz.com/edit/react-xbpuuf-cnhpt5?file=app%2Fmain.jsx
  2. Click on the DropDownList in order to trigger its invalid state
  3. Click the submit button, onSubmitClick is not fired

Ticket ID: 1654874

WissamProgress avatar Jun 14 '24 06:06 WissamProgress