mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix: Fix parameter inputField ref not yet mounted (no-changelog) (#5864)
* fix: fix parameter inputField ref not yet mounted * fix: move optional chaining * fix: fix focus condition
This commit is contained in:
parent
918c79c137
commit
86e20173da
|
@ -953,7 +953,7 @@ export default mixins(
|
|||
// Set focus on field
|
||||
setTimeout(() => {
|
||||
// @ts-ignore
|
||||
if (this.$refs.inputField && this.$refs.inputField.$el) {
|
||||
if (this.$refs.inputField?.focus && this.$refs.inputField?.$el) {
|
||||
// @ts-ignore
|
||||
this.$refs.inputField.focus();
|
||||
this.isFocused = true;
|
||||
|
|
Loading…
Reference in a new issue