D
D
dimonfreeman2021-06-10 14:40:45
Vue.js
dimonfreeman, 2021-06-10 14:40:45

How to keep track of what is already currentstep ==2 and perform a second check?

There is a form with 3 steps.
I add a check for dustiness of the field and deactivation of the button and the Disabled button if the required field is not filled.
watch is executed only at the first step.. does not react further..
how to modify ?

watch: {
      formData: function(step) {
        if (this.where_buy == null && this.currentstep === 1) {
          this.isButtonDisabled =false;
        }
      }
    }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question