Topic: Input group button and modals

theotherguy priority asked 4 years ago


Expected behavior When a user clicks a button that is an a input group it should treat the button as a button and not submit the form. Actual behavior When a user clicks a button that is an input group, who's buttons job is to launch a modal, the required field on the form, that is not being submitted by clicking the modal button, gives a required field error before the modal dialog launches. Resources (screenshots, code snippets etc.)

My work around for this was to turn the button into a span with the same data properties as the button to avoid the login form thinking it was being submitted.

To recreate this all you need to do is have a login form and on the password field have an input group that's a button that launches a modal dialog.


Mikołaj Smoleński staff commented 4 years ago

The form will treat the button correctly when You add a type="button" attribute to the button element. Best regards



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: 1.0.0
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: No
Tags