Daemonite / material

Material Design for Bootstrap 4
http://daemonite.github.io/material/
MIT License
3.2k stars 721 forks source link

Datepicker doesn't work with bootstrap validation #220

Open rpuk-matt opened 5 years ago

rpuk-matt commented 5 years ago

The required attribute is ignored and client side validation by bootstrap does not take place. <input type="text" name="due_date" class="form-control" id="inputDueDate" required>

MROALI commented 5 years ago

Do you have any solution for this bug ?

MROALI commented 5 years ago

The solution i found is to remove the readOnly attribute from the input using jquery after setting the datePicler. ( .prop(readOnly, false).