Skip to content

Commit

Permalink
Merge pull request #75 from k2maan/tab-enter-fix
Browse files Browse the repository at this point in the history
Fixed: OMS input reshowing on 'tab and enter' submit
  • Loading branch information
ymaheshwari1 authored Dec 20, 2023
2 parents 338b4dd + 69c24c5 commit 745259a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
<section v-if="showOmsInput">
<ion-item lines="full">
<ion-label position="fixed">{{ $t("OMS") }}</ion-label>
<ion-input name="instanceUrl" v-model="instanceUrl" id="instanceUrl" type="text" required />
<ion-input name="instanceUrl" v-model="instanceUrl" id="instanceUrl" type="text" required />
</ion-item>

<div class="ion-padding">
<ion-button color="primary" expand="block" @click="setOms()">
<!-- @keyup.enter.stop to stop the form from submitting on enter press as keyup.enter is already bound
through the form above, causing both the form and the button to submit. -->
<ion-button color="primary" expand="block" @click.prevent="setOms()" @keyup.enter.stop>
{{ $t("Next") }}
<ion-icon slot="end" :icon="arrowForwardOutline" />
</ion-button>
Expand Down

0 comments on commit 745259a

Please sign in to comment.