Skip to content

Commit

Permalink
fixes address and patient note card multi-line issue (#9607)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Dec 30, 2024
1 parent 94585fd commit 709d866
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/components/Facility/PatientNoteCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ const PatientNoteCard = ({
</div>
</div>
) : (
<div className="text-sm text-secondary-700">{noteField}</div>
<div className="text-sm text-secondary-700 whitespace-pre-wrap">
{noteField}
</div>
)}
</div>
}
Expand Down
5 changes: 0 additions & 5 deletions src/components/Form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ const Form = <T extends FormDetails>({
return (
<form
onSubmit={handleSubmit}
onKeyDown={(e) => {
if (e.key === "Enter") {
handleSubmit(e);
}
}}
className={classNames(
"mx-auto w-full",
!props.noPadding && "px-8 py-5 md:px-16 md:py-11",
Expand Down

0 comments on commit 709d866

Please sign in to comment.