mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08: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:
parent
6ac442a2ac
commit
ed403972a9
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue