From bc46115e630b27647fe4849b1c48730711503574 Mon Sep 17 00:00:00 2001 From: vishnuraghavb Date: Tue, 29 Jun 2021 17:07:19 +0530 Subject: [PATCH] fixed units dialog shows up twice --- app/components/EditRecipe.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/EditRecipe.vue b/app/components/EditRecipe.vue index accef551..9805e44d 100644 --- a/app/components/EditRecipe.vue +++ b/app/components/EditRecipe.vue @@ -155,7 +155,7 @@ col="2" :text="`${recipe.ingredients[i].unit}` | L" editable="false" - @focus="showUnits(1, i)" + @focus="!modalOpen && showUnits(1, i)" @tap="showUnits(0, i)" /> { + this.modalOpen = 0; if (action == "aNBtn") { this.$showModal(Prompt, { props: {