[Vuejs]-Transition's hook creates issue once destroyed and called back

0👍

I found that the issue was: the child component’s transition was not completed and I was running some function in parent component to make child component’s transition item condition true without using $nextTick but now I did like below code and the issue got fixed.

<script>
  export default {
    methods: {
      someFnInParent () {
        this.$nextTick(() => {
          this.$refs.childComp.someCondition = true
        })
      }
    }
  }
</script>

So, this.$nextTick(() => {}) helped me 🙂

Leave a comment