From 168d2214a815b3fc3066fc08eaf177b2dbbe0f8f Mon Sep 17 00:00:00 2001 From: Luca Faggianelli Date: Tue, 15 Oct 2019 16:44:09 +0200 Subject: [PATCH] fix focus of ParameterInput with type multiOptions fix #78, fix #2 --- 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 c6b06e270e..7cf72b6dfc 100644 --- a/packages/editor-ui/src/components/ParameterInput.vue +++ b/packages/editor-ui/src/components/ParameterInput.vue @@ -473,7 +473,7 @@ export default mixins( // Set focus on field setTimeout(() => { - (this.$refs.inputField as HTMLInputElement).focus(); + (this.$refs.inputField.$el.querySelector('input') as HTMLInputElement).focus(); }); }, valueChanged (value: string | number | boolean | Date | null) {