Skip to content

resetField({ value: undefined }) prevents the form from becoming valid after updating the field #4996

Open
@Tcharlyson

Description

@Tcharlyson

What happened?

After upgrading Vee-Validate from version 4.1.6 to 4.15.0, using resetField({ value: undefined }) prevents the form from becoming valid again, even after entering a new valid value.

Reproduction steps

  1. Fill in a form field with a valid value.
  2. Call resetField({ value: undefined }) to reset the field.
  3. Enter a new valid value in the field.
  4. Notice that the form remains invalid despite the correct input.

The form should become valid again once a new valid value is entered after resetting the field.

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

Demo link

https://stackblitz.com/edit/vee-validate-v4-multi-step-form-composition-8hwywbjf?file=src%2Fcomponents%2FFirstStep.vue

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions