Skip to content

b-form-tags required prop not working #6094

Closed
@damirbogd

Description

@damirbogd

Describe the bug

Forms gets submitted even though b-form-tags required and initial value is empty array

Steps to reproduce the bug

  1. Go to CodeSandbox
  2. Click on Submit button and see the Please fill in this field message
  3. Fill in first input and click on Submit button again
  4. See error. Forms gets submitted even though b-form-tags required and not filled in

Expected behavior

Trigger Please fill in this field message if b-form-tags prop required set to true and value is empty

Versions

Libraries:

  • BootstrapVue: 2.18.1
  • Bootstrap: 4.5.3
  • Vue: 2.6.12

Environment:

  • Device: Mac
  • OS: macOS Catalina
  • Browser: Chrome
  • Version: 87.0.4280.67 (Official Build) (x86_64)

Demo link

CodeSandbox

Additional context

I have tried setting form and input-type prop and it didn't help. Also, I have tried specifying different initial values in b-form-tags v-model such as null, undefined, empty array, empty string.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy