Skip to content

Required attribute is not stopping form submission #55

Open
@kamerat

Description

@kamerat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions