mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-23 10:32:17 -08:00
fix(editor): Fix focus jumping when using chrome autofill (#6140)
This commit is contained in:
parent
1607aeb9f9
commit
c63181b317
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue