Set new credentials dropdown to open by default (#1379)

Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
Iván Ovejero
2021-04-24 22:41:00 +02:00
committed by GitHub
parent 9271e73777
commit b9fbd2c0bb

View File

@@ -30,7 +30,7 @@
Credential type:
</el-col>
<el-col :span="18">
<el-select v-model="credentialType" filterable placeholder="Select Type" size="small">
<el-select v-model="credentialType" filterable placeholder="Select Type" size="small" ref="credentialsDropdown">
<el-option
v-for="item in credentialTypes"
:key="item.name"
@@ -198,6 +198,9 @@ export default mixins(
this.credentialData = currentCredentials;
} else {
Vue.nextTick(() => {
(this.$refs.credentialsDropdown as HTMLDivElement).focus();
});
if (this.credentialType || this.setCredentialType) {
const credentialType = this.$store.getters.credentialType(this.credentialType || this.setCredentialType);
if (credentialType === null) {