diff --git a/source/ClickBoundary.tsx b/source/ClickBoundary.tsx index 6caa5d0..c0164e0 100644 --- a/source/ClickBoundary.tsx +++ b/source/ClickBoundary.tsx @@ -1,5 +1,6 @@ import { DetailedHTMLProps, + HTMLAttributes, PropsWithChildren, PureComponent, createRef @@ -7,10 +8,9 @@ import { export type ClickBoundaryProps = PropsWithChildren< { - className?: string; onInnerClick?: (event: MouseEvent) => any; onOuterClick?: (event: MouseEvent) => any; - } & DetailedHTMLProps, HTMLDivElement> + } & DetailedHTMLProps, HTMLDivElement> >; export class ClickBoundary extends PureComponent { @@ -33,10 +33,10 @@ export class ClickBoundary extends PureComponent { } render() { - const { className, children, ...otherDivProps } = this.props; + const { children, ...props } = this.props; return ( -
+
{children}
);