Skip to content

Commit 00301ed

Browse files
committed
feat: add cell table delay
1 parent ab2c179 commit 00301ed

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/CellWithPopover/CellWithPopover.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ interface CellWithPopoverProps extends PopoverProps {
1111
wrapperClassName?: string;
1212
}
1313

14+
const DELAY_TIMEOUT = 100;
15+
1416
export function CellWithPopover({
1517
children,
1618
className,
@@ -19,7 +21,12 @@ export function CellWithPopover({
1921
}: CellWithPopoverProps) {
2022
return (
2123
<div className={b(null, wrapperClassName)}>
22-
<Popover className={b('popover', className)} {...props}>
24+
<Popover
25+
delayClosing={DELAY_TIMEOUT}
26+
delayOpening={DELAY_TIMEOUT}
27+
className={b('popover', className)}
28+
{...props}
29+
>
2330
{children}
2431
</Popover>
2532
</div>

0 commit comments

Comments
 (0)