Skip to content

Commit

Permalink
Fixed bug with nexttick (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
turulomio authored Aug 24, 2024
1 parent 0409e71 commit 5b49397
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Products.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@
name: this.$t("Add a elaborated product"),
icon: "mdi-plus",
code: function(){
this.$refs.table_elaborated_products.on_new_click()
this.tab=1
// Usamos nextTick para ejecutar código después de que el DOM se haya actualizado
this.$nextTick(() => {
this.$refs.table_elaborated_products.on_new_click()
});
}.bind(this),
},
]
Expand Down

0 comments on commit 5b49397

Please sign in to comment.