fix(tenant): correct inline editing input attributes in TenantInfo.vue
Updated the inline editing input in TenantInfo.vue to ensure proper event handling by consolidating the input attributes. This change enhances the user experience during tenant name editing by maintaining consistent functionality for saving and canceling edits. Refs: #1303
This commit is contained in:
@@ -55,8 +55,7 @@
|
||||
<!-- 编辑态:输入框 + 保存/取消。回车保存,Esc 取消。 -->
|
||||
<div v-else class="inline-edit">
|
||||
<t-input v-model="editName" :placeholder="$t('tenant.details.editNamePlaceholder')" :maxlength="64"
|
||||
:disabled="saving" autofocus class="inline-edit-input" @enter="saveTenantName"
|
||||
@keydown="onEditKeydown" />
|
||||
:disabled="saving" autofocus class="inline-edit-input" @enter="saveTenantName" @keydown="onEditKeydown" />
|
||||
<t-button theme="primary" size="small" :loading="saving" :disabled="!canSubmit" @click="saveTenantName">
|
||||
{{ $t('tenant.details.editNameConfirm') }}
|
||||
</t-button>
|
||||
|
||||
Reference in New Issue
Block a user