Skip to content

Commit

Permalink
feat: add cell table delay
Browse files Browse the repository at this point in the history
  • Loading branch information
astandrik committed Oct 10, 2024
1 parent ab2c179 commit 00301ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/CellWithPopover/CellWithPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ interface CellWithPopoverProps extends PopoverProps {
wrapperClassName?: string;
}

const DELAY_TIMEOUT = 100;

export function CellWithPopover({
children,
className,
Expand All @@ -19,7 +21,12 @@ export function CellWithPopover({
}: CellWithPopoverProps) {
return (
<div className={b(null, wrapperClassName)}>
<Popover className={b('popover', className)} {...props}>
<Popover
delayClosing={DELAY_TIMEOUT}
delayOpening={DELAY_TIMEOUT}
className={b('popover', className)}
{...props}
>
{children}
</Popover>
</div>
Expand Down

0 comments on commit 00301ed

Please sign in to comment.