The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fixed open table cell triggering (#6910)
Lucas Bordeaub9ee3139233e
diff --git a/packages/twenty-front/src/modules/ui/field/input/components/DoubleTextInput.tsx b/packages/twenty-front/src/modules/ui/field/input/components/DoubleTextInput.tsxindex c0e312a9218..027371815c9 100644--- a/packages/twenty-front/src/modules/ui/field/input/components/DoubleTextInput.tsx+++ b/packages/twenty-front/src/modules/ui/field/input/components/DoubleTextInput.tsx@@ -172,6 +172,13 @@ export const DoubleTextInput = ({onPaste?.({ firstValue: splittedName[0], secondValue: splittedName[1] });};+ const handleClickToPreventParentClickEvents = (+ event: React.MouseEvent<HTMLInputElement>,+ ) => {+ event.stopPropagation();+ event.preventDefault();+ };+return (<StyledContainer ref={containerRef}><StyledTextInput@@ -187,6 +194,7 @@ export const DoubleTextInput = ({onPaste={(event: ClipboardEvent<HTMLInputElement>) =>handleOnPaste(event)}+ onClick={handleClickToPreventParentClickEvents}/><StyledTextInputautoComplete="off"@@ -197,6 +205,7 @@ export const DoubleTextInput = ({onChange={(event: ChangeEvent<HTMLInputElement>) => {handleChange(firstInternalValue, event.target.value);}}+ onClick={handleClickToPreventParentClickEvents}/></StyledContainer>);