Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Jun 8, 2020
1 parent 752b861 commit 68b9472
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "rc-dialog",
"version": "8.0.0",
"version": "8.0.1",
"description": "dialog ui component for react",
"keywords": [
"react",
Expand Down
8 changes: 6 additions & 2 deletions src/Dialog.tsx
Expand Up @@ -140,14 +140,18 @@ export default class Dialog extends React.Component<IDialogChildProps, any> {
}

onAnimateLeave = () => {
const { afterClose } = this.props;
const { afterClose, getOpenCount } = this.props;
// need demo?
// https://github.com/react-component/dialog/pull/28
if (this.wrap) {
this.wrap.style.display = 'none';
}
this.inTransition = false;
this.switchScrollingEffect();
// 如果没有打开的状态,则清除 effect 和 overflow: hidden;
// https://github.com/ant-design/ant-design/issues/21539
if (!getOpenCount()) {
this.switchScrollingEffect();
}
if (afterClose) {
afterClose();
}
Expand Down

0 comments on commit 68b9472

Please sign in to comment.