From c63181b3171040c3dd3051c2a1358aea0af6bae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milorad=20FIlipovi=C4=87?= Date: Tue, 2 May 2023 10:15:16 +0200 Subject: [PATCH] fix(editor): Fix focus jumping when using chrome autofill (#6140) --- packages/editor-ui/src/components/ParameterInput.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/ParameterInput.vue b/packages/editor-ui/src/components/ParameterInput.vue index 24d127c551..2a5070f306 100644 --- a/packages/editor-ui/src/components/ParameterInput.vue +++ b/packages/editor-ui/src/components/ParameterInput.vue @@ -393,6 +393,7 @@ import { useNDVStore } from '@/stores/ndv'; import { useNodeTypesStore } from '@/stores/nodeTypes'; import { useCredentialsStore } from '@/stores/credentials'; import { htmlEditorEventBus } from '@/event-bus'; +import Vue from 'vue'; type ResourceLocatorRef = InstanceType; @@ -971,8 +972,7 @@ export default mixins( this.nodeName = this.node.name; } - // Set focus on field - setTimeout(() => { + Vue.nextTick(() => { // @ts-ignore if (this.$refs.inputField?.focus && this.$refs.inputField?.$el) { // @ts-ignore