mdbootstrap / material-design-for-bootstrap

Important! A new UI Kit version for Bootstrap 5 is available. Access the latest free version via the link below.
https://mdbootstrap.com/docs/standard/
MIT License
9.34k stars 1.15k forks source link

For input type != text, required not working #171

Closed s1lviu closed 5 years ago

s1lviu commented 6 years ago

Expected behavior

Required field

Actual behavior

Form submits without having field as required

Your working environment and MDB version information

MDB PRO 4.4.3

Resources (screenshots, code snippets etc.)

<input name="email" id="userEmail" type="email" required="required" autocomplete="email"
                                       class="form-control validate">

The presented snippet don't make the field required. If I change the input type with text instead of email will work.

anna-morawska commented 6 years ago

Hi there, it's already fixed in the recent version.