Skip to content

Commit a5f083f

Browse files
prevent unintented form submission while removing orgs in encounter create (ohcnetwork#16025)
1 parent 4c47494 commit a5f083f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/pages/Facility/settings/organizations/components/FacilityOrganizationSelector.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ export default function FacilityOrganizationSelector(
578578
? "text-yellow-500 hover:text-yellow-600"
579579
: "text-gray-400 hover:text-yellow-500",
580580
)}
581+
type="button"
581582
onClick={(e) => handleTogglePreferred(e, org)}
582583
disabled={
583584
addFavoriteMutation.isPending ||
@@ -598,6 +599,7 @@ export default function FacilityOrganizationSelector(
598599
variant="ghost"
599600
size="sm"
600601
className="size-8 p-0 text-gray-500 hover:text-gray-900"
602+
type="button"
601603
onClick={() => handleRemoveOrganization(index)}
602604
>
603605
<X className="size-4" />

0 commit comments

Comments
 (0)