Skip to content

Commit

Permalink
Merge pull request #13090 from shruti862/fix-10688
Browse files Browse the repository at this point in the history
Pressing Enter key successfully submits Facility Import Admin Credentials form
  • Loading branch information
nucleogenesis authored Feb 20, 2025
2 parents 7c47bad + f078402 commit f5161e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
:facility="facility"
:device="device"
:disabled="formDisabled"
:handleSubmit="handleSubmit"
/>
</KModal>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>

<form>
<form @keydown.enter="submitForm">
<p
v-if="singleFacility && facility.name"
class="facility-name"
Expand Down Expand Up @@ -86,6 +86,10 @@
type: Boolean,
default: false,
},
handleSubmit: {
type: Function,
default: () => {},
},
},
data() {
return {
Expand Down Expand Up @@ -152,6 +156,11 @@
}
});
},
submitForm() {
if (this.handleSubmit) {
this.handleSubmit();
}
},
},
$trs: {
// Use this version in Device > Facilities
Expand Down

0 comments on commit f5161e0

Please sign in to comment.