viewflow / django-material

Material Design for Django
http://viewflow.io/
BSD 3-Clause "New" or "Revised" License
2.49k stars 424 forks source link

An invalid form control with name='educations' is not focusable. #435

Closed nikolaysm closed 6 years ago

nikolaysm commented 6 years ago

When i submit form with required selectfields I get in browser this error "An invalid form control with name='educations' is not focusable." .

With materializecss it is working https://codepen.io/anon/pen/qJpqZr. (without additional js)

kmmbvnr commented 6 years ago

Can you reproduce it on demo.viewflow.io?

nikolaysm commented 6 years ago

No, I couldn't find any form in which html5 validation is used. All forms are only used by server side validation.

kmmbvnr commented 6 years ago

There is no plans to enable html5 validation

nikolaysm commented 6 years ago

A quick solution to add a css, but not the best solution.

.select-wrapper>select[required] {
    position: absolute !important;
    display: inline !important;
    opacity: 0;
    left: 50%;
    top: 50%;
    width: 0;
    height:0;
    margin: auto;
    padding: 0;
}