Skip to content

Commit e172e1b

Browse files
committed
fix(useDoubleClick): remove logging
1 parent 6573696 commit e172e1b

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.storybook/stories/Features/select.story.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,7 @@ storiesOf('Features/Select', module)
6767

6868
<Body>
6969
{tableList.map((item) => (
70-
<Row
71-
item={item}
72-
key={item.id}
73-
onClick={() => console.log('single')}
74-
onDoubleClick={() => console.log('double')}
75-
>
70+
<Row item={item} key={item.id}>
7671
<Cell>{item.name}</Cell>
7772
<Cell>
7873
{item.deadline.toLocaleDateString('en-US', {

src/table/Row/useDoubleClick.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,13 @@ const useDoubleClickBase = ({
2121

2222
const handleDoubleClick = (event: any) => {
2323
if (onDoubleClick) {
24-
console.log(clickCount.current);
25-
2624
if (clickCount.current === 0) {
2725
onSingleClick(event);
2826
}
2927

3028
clickCount.current += 1;
3129

3230
setTimeout(() => {
33-
console.log('timeout', clickCount.current);
3431
if (clickCount.current === 2) onDoubleClick(event);
3532

3633
clickCount.current = 0;

0 commit comments

Comments
 (0)