From 833100b492dd4663c4683b0dc7119d2b5dfb6672 Mon Sep 17 00:00:00 2001 From: Ashesh <3626859+Ashesh3@users.noreply.github.com> Date: Tue, 16 Apr 2024 11:20:03 +0530 Subject: [PATCH] Fix action clicks on docotor connect slideover (#7625) --- src/Components/Facility/DoctorVideoSlideover.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Components/Facility/DoctorVideoSlideover.tsx b/src/Components/Facility/DoctorVideoSlideover.tsx index 1ce12f9a6a7..50c37b5c8a3 100644 --- a/src/Components/Facility/DoctorVideoSlideover.tsx +++ b/src/Components/Facility/DoctorVideoSlideover.tsx @@ -244,11 +244,12 @@ function UserListItem(props: { user: UserAssignedModel; facilityId: string }) { + onClick={async (e) => { + e.stopPropagation(); await navigator.clipboard.writeText( user?.alt_phone_number || "", - ) - } + ); + }} > @@ -280,7 +281,8 @@ function DoctorConnectButtons(props: { {user.video_connect_link && ( { + onClick={(e) => { + e.stopPropagation(); triggerGoal("Doctor Connect Click", { medium: "Video Call", userId: authUser.id, @@ -306,7 +308,8 @@ function DoctorConnectButtons(props: { { + onClick={(e) => { + e.stopPropagation(); triggerGoal("Doctor Connect Click", { medium: "Phone Call", userId: authUser.id,