Calendar buttons submit forms


Topic: Calendar buttons submit forms

Marvin Herbold pro premium priority asked 3 years ago

In HTML the default <button> type, if you do not specify a type, is "submit".

The calendar creates navigation <button>s, without specifying types, so all of the navigation buttons end up being of type "submit".

This is problematic when wrapping a page in a <form>.

When attempting to navigate the calendar via the calendar buttons, the calendar ends up submitting the form, which is not desired.

Please update the calendar plugin to explicitly set the type to "button". This is a common issue across MDB components. Everywhere a button is created, if the button is not intended to submit a form, the type needs to be set to "button". I've run into this issue more than once already.


Michał Duszak staff answered 3 years ago

Hello, thank you for your feedback, we will take a closer look at this issue. By the time could you create a snippet with this problem so that we have an exact picture of your problem?


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.7.1
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No