mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor-ui): Fix ParameterInput inputField ref focus (#4215)
* fix(editor-ui): Fix ParameterInput inputField ref focus
* 🐛 Add focus method for `CredentialsSelect` and revert previous change to `ParamterInput`
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
:value="displayValue"
|
||||
:placeholder="parameter.placeholder ? getPlaceholder() : $locale.baseText('parameterInput.select')"
|
||||
:title="displayTitle"
|
||||
ref="innerSelect"
|
||||
@change="(value) => $emit('valueChanged', value)"
|
||||
@keydown.stop
|
||||
@focus="$emit('setFocus')"
|
||||
@@ -82,6 +83,12 @@ export default Vue.extend({
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
focus() {
|
||||
const select = this.$refs.innerSelect as Vue & HTMLElement | undefined;
|
||||
if (select) {
|
||||
select.focus();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Check if a credential type belongs to one of the supported sets defined
|
||||
* in the `credentialTypes` key in a `credentialsSelect` parameter
|
||||
|
||||
Reference in New Issue
Block a user