Skip to content

Commit 1d535d7

Browse files
authored
refactor: props usage
1 parent f943438 commit 1d535d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Dialog.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ export default class Dialog extends React.Component<IDialogChildProps, any> {
106106
}
107107

108108
componentDidUpdate(prevProps: IDialogPropTypes) {
109-
const { visible, mask, focusTriggerAfterClose } = this.props;
110-
const { mousePosition } = this.props;
109+
const { visible, mask, focusTriggerAfterClose, mousePosition } = this.props;
111110
if (visible) {
112111
// first show
113112
if (!prevProps.visible) {

0 commit comments

Comments
 (0)