[Vuejs]-How to trigger a click on dynamic element in Vue.js?

0👍

what I ended up doing is to push the response to the finally() function

ref="chores"

and

.then(response => {
        this.chores = _.orderBy(response.data, "time_from", "asc");
        $.each(response.data, function(key, value) {
          if (value.time_from < me.getNow() && value.time_to > me.getNow()) {
            i.push(key);
          }
        });
      })
      .finally(() => this.$refs.chores[i].click());

Leave a comment