fix(editor): Fix focus jumping when using chrome autofill (#6140)

This commit is contained in:
Milorad FIlipović 2023-05-02 10:15:16 +02:00 committed by GitHub
parent 1607aeb9f9
commit c63181b317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<typeof ResourceLocator>;
@ -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