Skip to content

Commit

Permalink
Add Enter key functionality to trigger verification in PatientIndex (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-learner authored Feb 6, 2025
1 parent 7d0e1aa commit e4e67a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Patient/PatientIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ export default function PatientIndex({ facilityId }: { facilityId: string }) {
setYearOfBirth(value);
}
}}
onKeyDown={(e) => {
if (e.key === "Enter") {
handleVerify();
}
}}
/>
</div>
<DialogFooter>
Expand Down

0 comments on commit e4e67a5

Please sign in to comment.