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

Required attribute is not stopping form submission #55

Open
kamerat opened this issue Jan 24, 2018 · 4 comments
Open

Required attribute is not stopping form submission #55

kamerat opened this issue Jan 24, 2018 · 4 comments
Labels

Comments

@kamerat
Copy link

kamerat commented Jan 24, 2018

Expected Behavior

Form submission stops and you get notified what input field is faulty.

empty-value accepting null or "" to make input value empty.

Actual Behavior

Form goes trough without validating; Input field has a value of 0 or {{empty-value}}

Steps to Reproduce the Problem

  1. Create a form tag with a submit function. <form @submit.prevent = "doSomething()">
  2. Create a new fresh component, add v.model and add attribute "required" to the tag
  3. Add submit button to form
  4. Submit empty form

Specifications

  • Plugin Version: 2.2.8
  • Vue.js Version: 2.5.13
  • Browser: Google Chrome: 63.0
  • OS: Windows: 10
@kevinongko kevinongko added the bug label Jan 26, 2018
@henrywirawan
Copy link

Also face the same issue here

@gergo2007
Copy link

any updates on this?

@koblents
Copy link

Faced to the same problem. It is really annoying - can it be fixed somehow?

@kamerat
Copy link
Author

kamerat commented Mar 29, 2019

I suppose this is not a hard issue to fix. I could have probably patched together a PR to fix this even tho I have moved away from this. However, I think it would be a waste of time. This repo seems dead/unmaintained

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants