From 97b35daf0a50322088492500be22af879524dc77 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Fri, 31 Mar 2023 15:59:54 +0300 Subject: [PATCH] fix: Fix parameter inputField ref not yet mounted (no-changelog) (#5864) * fix: fix parameter inputField ref not yet mounted * fix: move optional chaining * fix: fix focus condition --- packages/editor-ui/src/components/ParameterInput.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/ParameterInput.vue b/packages/editor-ui/src/components/ParameterInput.vue index 02feec6000..fd734894a2 100644 --- a/packages/editor-ui/src/components/ParameterInput.vue +++ b/packages/editor-ui/src/components/ParameterInput.vue @@ -961,7 +961,7 @@ export default mixins( // Set focus on field setTimeout(() => { // @ts-ignore - if (this.$refs.inputField && this.$refs.inputField.$el) { + if (this.$refs.inputField?.focus && this.$refs.inputField?.$el) { // @ts-ignore this.$refs.inputField.focus(); this.isFocused = true;