ui: fix focus in deployvm form (#5089)

Fixes #5087

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2021-06-09 12:10:01 +05:30 committed by GitHub
parent b0f2112dc2
commit da382993c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -21,8 +21,7 @@
style="width: 25vw;float: right;margin-bottom: 10px; z-index: 8"
:placeholder="$t('label.search')"
v-model="filter"
@search="handleSearch"
autoFocus />
@search="handleSearch" />
<a-table
:columns="columns"
:dataSource="tableSource"

View File

@ -33,7 +33,6 @@
<template slot="ipAddress" slot-scope="text, record, index">
<a-form-item v-if="record.type!=='L2' && index === 0">
<a-input
:autoFocus="record.type!=='L2'"
style="width: 150px;"
v-decorator="['ipAddress' + record.id, {
rules: [{
@ -50,10 +49,9 @@
</a-input>
</a-form-item>
</template>
<template slot="macAddress" slot-scope="text, record, index">
<template slot="macAddress" slot-scope="text, record">
<a-form-item>
<a-input
:autoFocus="record.type==='L2' && index === 0"
style="width: 150px;"
:placeholder="$t('label.macaddress')"
v-decorator="[`macAddress` + record.id, {