mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50: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 { useNodeTypesStore } from '@/stores/nodeTypes';
|
||||||
import { useCredentialsStore } from '@/stores/credentials';
|
import { useCredentialsStore } from '@/stores/credentials';
|
||||||
import { htmlEditorEventBus } from '@/event-bus';
|
import { htmlEditorEventBus } from '@/event-bus';
|
||||||
|
import Vue from 'vue';
|
||||||
|
|
||||||
type ResourceLocatorRef = InstanceType<typeof ResourceLocator>;
|
type ResourceLocatorRef = InstanceType<typeof ResourceLocator>;
|
||||||
|
|
||||||
|
@ -971,8 +972,7 @@ export default mixins(
|
||||||
this.nodeName = this.node.name;
|
this.nodeName = this.node.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set focus on field
|
Vue.nextTick(() => {
|
||||||
setTimeout(() => {
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (this.$refs.inputField?.focus && this.$refs.inputField?.$el) {
|
if (this.$refs.inputField?.focus && this.$refs.inputField?.$el) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|
Loading…
Reference in a new issue