Inline form prevent default


Topic: Inline form prevent default

lyahim asked 4 years ago

Dear Support!

I would like to ask how can I use perventDefault in inline form? The simples solution doesn't work:

Thank you, Mihaly


Magdalena Dembna staff premium answered 4 years ago

If you want to prevent submitting the following solution worked for me;

<mdb-form-inline @submit.prevent>
          <mdb-input />
          <mdb-btn type="submit">submit</mdb-btn>
        </mdb-form-inline>

Best regards, Magdalena


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: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.7.1
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No