From 6d43c21d80a3b210a7e01df9fa73d4f076698a58 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Mon, 13 Jul 2020 08:51:07 +0800 Subject: [PATCH] [bug fix]Click the cancel button to prevent the input box from losing focus #3116 (#3115) * [bugfix]Replace favicon icon with png * Cancel the initial value of the node cache * [bug fix]Click the cancel button to prevent the input box from losing focus Co-authored-by: dailidong --- .../conf/home/pages/dag/_source/formModel/formModel.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue index 54293272d..1e2cbd3ba 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue @@ -260,7 +260,7 @@
- {{$t('Cancel')}} + {{$t('Cancel')}} {{spinnerLoading ? 'Loading...' : $t('Confirm add')}}
@@ -580,6 +580,7 @@ } this.isContentBox = false // flag Whether to delete a node this.$destroy() + this.$emit('close', { item: { type: this.cacheBackfillItem.type, @@ -675,7 +676,11 @@ this.isContentBox = true }, mounted () { - + let self = this + $("#cancelBtn").mousedown(function(event){ + event.preventDefault(); + self.close() + }); }, updated () { }, -- GitLab