Skip to content

Commit

Permalink
fix: resolve comment 1
Browse files Browse the repository at this point in the history
  • Loading branch information
stevending1st committed Aug 18, 2023
1 parent a37c1d0 commit 6f4f4ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/ClickBoundary.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import {
DetailedHTMLProps,
HTMLAttributes,
PropsWithChildren,
PureComponent,
createRef
} from 'react';

export type ClickBoundaryProps = PropsWithChildren<
{
className?: string;
onInnerClick?: (event: MouseEvent) => any;
onOuterClick?: (event: MouseEvent) => any;
} & DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>
} & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>
>;

export class ClickBoundary extends PureComponent<ClickBoundaryProps> {
Expand All @@ -33,10 +33,10 @@ export class ClickBoundary extends PureComponent<ClickBoundaryProps> {
}

render() {
const { className, children, ...otherDivProps } = this.props;
const { children, ...props } = this.props;

return (
<div className={className} ref={this.root} {...otherDivProps}>
<div ref={this.root} {...props}>
{children}
</div>
);
Expand Down

1 comment on commit 6f4f4ed

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for idea-react ready!

✅ Preview
https://idea-react-kdkl24wgt-stevending1st.vercel.app

Built with commit 6f4f4ed.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.