Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form validations are not working #48

Closed
munikumar604 opened this issue Sep 28, 2015 · 4 comments
Closed

form validations are not working #48

munikumar604 opened this issue Sep 28, 2015 · 4 comments

Comments

@munikumar604
Copy link

Hi Team form validations are not working with attribute no validate in form tag. I am looking to use this framework with knockout js. could you please suggest me.

@amorey
Copy link
Member

amorey commented Sep 28, 2015

Can you explain how to reproduce the bug? The form example on the documentation site is working:
https://www.muicss.com/docs/v1/css-js/forms

@munikumar604
Copy link
Author

Hi Amorey I used like below

<form novalidate>
  <legend>Title</legend>
  <div class="mui-form-group">
    <input type="text" class="mui-form-control" placeholder="Input 1">
  </div>
  <div class="mui-form-group">
    <input type="text" class="mui-form-control" placeholder="Input 2">
  </div>
  <div class="mui-form-group">
    <textarea class="mui-form-control" placeholder="Textarea"></textarea>
  </div>
  <button type="submit" class="mui-btn" data-mui-style="raised">Submit</button>
</form>

@amorey
Copy link
Member

amorey commented Sep 29, 2015

Thanks, I'll take a look at it tonight.

@amorey
Copy link
Member

amorey commented Nov 27, 2015

@munikumar604 - Sorry for the late reply!

The novalidate flag controls the browser's submission behavior (e.g. by default Chrome won't submit a form unless the fields pass validation). MUI uses CSS validators to modify the style which are independent of the novalidate flag.

Is this still a problem for you?

@amorey amorey closed this as completed Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants