Skip to content

Commit a27f132

Browse files
committed
fix: - Added timeout - Removed Console logs
1 parent 4dbce10 commit a27f132

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/column/columnTypeComps/simpleTextComp.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ interface SimpleTextEditViewProps {
5151

5252
const SimpleTextContent = React.memo(({ value, prefixIcon, suffixIcon, onEvent }: SimpleTextContentProps) => {
5353
const handleClick = useCallback(() => {
54-
console.log("This comp");
5554
onEvent && ComponentClickHandler({onEvent})()
5655
}, [onEvent]);
5756

client/packages/lowcoder/src/comps/utils/componentClickHandler.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export const ComponentClickHandler = (props: Props) => {
1919
clearTimeout(clickTimer)
2020

2121
if((now - lastClickTime) < DOUBLE_CLICK_THRESHOLD){
22-
return props.onEvent(ClickEventType.DOUBLE_CLICK)
22+
clearTimeout(clickTimer)
23+
props.onEvent(ClickEventType.DOUBLE_CLICK)
2324
} else {
2425
clickTimer = setTimeout(() => {
2526
props.onEvent(ClickEventType.CLICK)

0 commit comments

Comments
 (0)