Skip to content

Checkboxes with initialValue always validated on mount #3808

Description

@dvdmlln

What happened?

Hi,

I'm trying to create a custom checkboxes component with an initial value. However, the validation is always triggered on mount when an initial value is set.
I tried adding an initial value in the official custom checkboxes example, which is using vee-validate 4.4.0-alpha and vue 3.0.2, and it was working. When I updated the dependencies in the example to vee-validate 4.5.11 and vue 3.2.37 it stopped working and the validation is triggered on mount again.

Best regards
David

Reproduction steps

No response

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

No response

Demo link

https://codesandbox.io/s/vee-validate-custom-checkboxes-forked-18xffw?file=/src/CustomCheckbox.vue

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugUnintended behavior

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions