Skip to content

Commit

Permalink
fix: will not unmount modal node when visible is hidden. fix #710
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeLin committed Jul 8, 2021
1 parent dd0ce63 commit ab9005b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/zarm/src/modal/index.tsx
Expand Up @@ -67,6 +67,7 @@ function modalType(props, type) {
function _afterClose() {
if (mountNode) {
mountNode.removeChild(container);
ReactDOM.unmountComponentAtNode(container);
}
}

Expand Down

0 comments on commit ab9005b

Please sign in to comment.