Confirmation by pressing Space on confirm screens (#784)

* submit button when pressing Space on confirm modal

* removed console

* add auto-focus into switch & remove keyup function

* revert message on storagejs

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Hoang Nguyen 2020-10-05 18:56:31 +07:00 committed by Rohit Yadav
parent 5640434068
commit 32fe0520d7
2 changed files with 2 additions and 1 deletions

View File

@ -170,6 +170,7 @@
}]"
v-model="formModel[field.name]"
:placeholder="field.description"
:autoFocus="fieldIndex === 0"
/>
</span>
<span v-else-if="currentAction.mapping && field.name in currentAction.mapping && currentAction.mapping[field.name].options">

View File

@ -30,7 +30,7 @@
<a-icon type="info-circle" style="color: rgba(0,0,0,.45)" />
</a-tooltip>
</span>
<a-switch v-decorator="['expunge']" />
<a-switch v-decorator="['expunge']" :auto-focus="true" />
</a-form-item>
<a-form-item v-if="volumes.length > 0">