fixed units dialog shows up twice
This commit is contained in:
parent
b82968acec
commit
bc46115e63
1 changed files with 3 additions and 1 deletions
|
@ -155,7 +155,7 @@
|
||||||
col="2"
|
col="2"
|
||||||
:text="`${recipe.ingredients[i].unit}` | L"
|
:text="`${recipe.ingredients[i].unit}` | L"
|
||||||
editable="false"
|
editable="false"
|
||||||
@focus="showUnits(1, i)"
|
@focus="!modalOpen && showUnits(1, i)"
|
||||||
@tap="showUnits(0, i)"
|
@tap="showUnits(0, i)"
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
|
@ -714,6 +714,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
showUnits(focus, i) {
|
showUnits(focus, i) {
|
||||||
|
this.modalOpen = 1;
|
||||||
this.$showModal(Action, {
|
this.$showModal(Action, {
|
||||||
props: {
|
props: {
|
||||||
title: "Unit",
|
title: "Unit",
|
||||||
|
@ -722,6 +723,7 @@ export default {
|
||||||
selected: this.recipe.ingredients[i].unit,
|
selected: this.recipe.ingredients[i].unit,
|
||||||
},
|
},
|
||||||
}).then((action) => {
|
}).then((action) => {
|
||||||
|
this.modalOpen = 0;
|
||||||
if (action == "aNBtn") {
|
if (action == "aNBtn") {
|
||||||
this.$showModal(Prompt, {
|
this.$showModal(Prompt, {
|
||||||
props: {
|
props: {
|
||||||
|
|
Loading…
Reference in a new issue