kendo-react
kendo-react copied to clipboard
[Bug][Form] onSubmitClick does is not executed when having an invalid dropdown component
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
- Open this example - https://stackblitz.com/edit/react-xbpuuf-cnhpt5?file=app%2Fmain.jsx
- Click on the DropDownList in order to trigger its invalid state
- Click the submit button, onSubmitClick is not fired
Ticket ID: 1654874