vue-numeric
vue-numeric copied to clipboard
Required attribute is not stopping form submission
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
- Create a form tag with a submit function.
<form @submit.prevent = "doSomething()">
- Create a new fresh component, add v.model and add attribute "required" to the
tag - Add submit button to form
- Submit empty form
Specifications
- Plugin Version: 2.2.8
- Vue.js Version: 2.5.13
- Browser: Google Chrome: 63.0
- OS: Windows: 10
Also face the same issue here
any updates on this?
Faced to the same problem. It is really annoying - can it be fixed somehow?
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