Skip to content

Commit

Permalink
fix(form_validation): using enter will validate login and create/edit…
Browse files Browse the repository at this point in the history
… modal (#1138)
  • Loading branch information
LaurentMag authored Nov 30, 2023
1 parent befaee4 commit 52ad578
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion yaki_admin/src/components/InputPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ const switchPasswordVisibility = () => {
<label for="input-pw"> {{ labelText }}</label>
<button
@click.prevent="switchPasswordVisibility"
class="input__password-btn-switch">
class="input__password-btn-switch"
type="button">
<figure>
<img
:src="isPasswordVisible ? eyesClosedIcon : eyesOpenedIcon"
Expand Down
11 changes: 6 additions & 5 deletions yaki_admin/src/components/ModalCreateEditTeam.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const setTeamDescription = (value: any) => {};
</section>

<section class="popup__content">
<div class="popup__input-container">
<form class="popup__input-container">
<input-text
label-text="Team name"
@inputValue="setTeamName" />
Expand All @@ -63,14 +63,15 @@ const setTeamDescription = (value: any) => {};
<button-text-sized
text="Cancel"
:color="BUTTONCOLORS.secondary"
@click.prevent="cancelModalBtn" />

@click.prevent="cancelModalBtn"
type="button" />
<button-text-sized
text="Modify"
:color="BUTTONCOLORS.primary"
@click.prevent="validationModalAccept" />
@click.prevent="validationModalAccept"
type="submit" />
</section>
</div>
</form>
</section>
</section>
</section>
Expand Down
3 changes: 2 additions & 1 deletion yaki_admin/src/features/login/components/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export default {

<button-primary
text="SIGN IN"
@click.prevent="login" />
@click.prevent="login"
type="submit" />
<buttonSecondary
text="FORGOTTEN PASSWORD?"
@click.prevent="forgottenPassword" />
Expand Down

0 comments on commit 52ad578

Please sign in to comment.