mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Fix focus jumping when using chrome autofill (#6140)
This commit is contained in:
committed by
GitHub
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
|
||||
|
||||
Reference in New Issue
Block a user