vue-numeric icon indicating copy to clipboard operation
vue-numeric copied to clipboard

Required attribute is not stopping form submission

Open kamerat opened this issue 7 years ago • 4 comments

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

kamerat avatar Jan 24 '18 13:01 kamerat

Also face the same issue here

henrywirawan avatar Apr 06 '18 03:04 henrywirawan

any updates on this?

gergo2007 avatar May 02 '18 08:05 gergo2007

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

koblents avatar Mar 29 '19 09:03 koblents

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

kamerat avatar Mar 29 '19 11:03 kamerat