From 371dbef966043d5385d0b0d064687d24aeb516f9 Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Thu, 8 Sep 2022 11:21:53 +0200 Subject: [PATCH] Fix #197 --- src/components/assay/CreateAssayDialog.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/assay/CreateAssayDialog.vue b/src/components/assay/CreateAssayDialog.vue index 3fcd661..9f12bb9 100644 --- a/src/components/assay/CreateAssayDialog.vue +++ b/src/components/assay/CreateAssayDialog.vue @@ -389,7 +389,13 @@ export default class CreateAssayDialog extends Vue { private close() { this.dialogActive = false; - this.$emit("input", this.dialogActive); + } + + @Watch("dialogActive") + private onDialogActiveChanged() { + if (!this.dialogActive) { + this.$emit("input", this.dialogActive) + } } /**