The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
bugfix: fix pointer propagation of links behind the before element
Sammy Teillet3c7bd5cd285f
diff --git a/front/src/components/table/ClickableCell.tsx b/front/src/components/table/ClickableCell.tsxindex 515006308a4..e30bd8a06f3 100644--- a/front/src/components/table/ClickableCell.tsx+++ b/front/src/components/table/ClickableCell.tsx@@ -24,6 +24,7 @@ const StyledClickable = styled.div`border: 1px solid ${(props) => props.theme.text20};box-sizing: border-box;border-radius: 4px;+ pointer-events: none;display: none;}diff --git a/front/src/pages/people/People.tsx b/front/src/pages/people/People.tsxindex 2d1ab504888..5b6e793c4d7 100644--- a/front/src/pages/people/People.tsx+++ b/front/src/pages/people/People.tsx@@ -125,10 +125,8 @@ const columns = [columnHelper.accessor('email', {header: () => <ColumnHead viewName="Email" viewIcon={faEnvelope} />,cell: (props) => (- <ClickableCell href="#">- <a href={`mailto:${props.row.original.email}`}>- {props.row.original.email}- </a>+ <ClickableCell href={`mailto:${props.row.original.email}`}>+ {props.row.original.email}</ClickableCell>),}),@@ -146,18 +144,16 @@ const columns = [columnHelper.accessor('phone', {header: () => <ColumnHead viewName="Phone" viewIcon={faPhone} />,cell: (props) => (- <ClickableCell href="#">- <a- href={parsePhoneNumber(- props.row.original.phone,- props.row.original.countryCode as CountryCode,- )?.getURI()}- >- {parsePhoneNumber(- props.row.original.phone,- props.row.original.countryCode as CountryCode,- )?.formatInternational() || props.row.original.phone}- </a>+ <ClickableCell+ href={parsePhoneNumber(+ props.row.original.phone,+ props.row.original.countryCode as CountryCode,+ )?.getURI()}+ >+ {parsePhoneNumber(+ props.row.original.phone,+ props.row.original.countryCode as CountryCode,+ )?.formatInternational() || props.row.original.phone}</ClickableCell>),}),