Skip to content

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

@WissamProgress

Description

@WissamProgress

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions