Merge pull request 'refs #5673 feat(claimDevelopment): tab on add button makes focus on save' (!105) from 5673-warmFix_claimDevelopment_tabFocus into test
gitea/salix-front/pipeline/head This commit looks good Details

Reviewed-on: #105
Reviewed-by: Carlos Satorres Adam <carlossa@verdnatura.es>
This commit is contained in:
Alex Moreno 2023-10-25 12:08:41 +00:00
commit d70166bae3
1 changed files with 2 additions and 4 deletions

View File

@ -19,7 +19,7 @@ const claimResponsibles = ref([]);
const claimRedeliveries = ref([]);
const workers = ref([]);
const selected = ref([]);
const insertButtonRef = ref();
const saveButtonRef = ref();
let salixUrl;
onMounted(async () => {
@ -236,13 +236,11 @@ function goToAction() {
</CrudModel>
<QPageSticky position="bottom-right" :offset="[25, 25]">
<QBtn
ref="insertButtonRef"
fab
color="primary"
icon="add"
@keydown.tab.prevent="saveButtonRef.$el.focus()"
@click="claimDevelopmentForm.insert()"
@keydown.ctrl.enter.stop="claimDevelopmentForm.saveChanges()"
@keydown.enter.stop
/>
</QPageSticky>
</template>