Skip to content

Commit

Permalink
refactor: props usage
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Sep 2, 2020
1 parent f943438 commit 1d535d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Dialog.tsx
Expand Up @@ -106,8 +106,7 @@ export default class Dialog extends React.Component<IDialogChildProps, any> {
}

componentDidUpdate(prevProps: IDialogPropTypes) {
const { visible, mask, focusTriggerAfterClose } = this.props;
const { mousePosition } = this.props;
const { visible, mask, focusTriggerAfterClose, mousePosition } = this.props;
if (visible) {
// first show
if (!prevProps.visible) {
Expand Down

1 comment on commit 1d535d7

@vercel
Copy link

@vercel vercel bot commented on 1d535d7 Sep 2, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.