默认打开的弹框不会添加 is-modalOpened (#1167)

This commit is contained in:
liaoxuezhi 2020-12-10 18:20:31 +08:00 committed by GitHub
parent f5b7edf7a5
commit fa3eca199c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,6 +132,7 @@ export class Modal extends React.Component<ModalProps, ModalState> {
componentDidMount() {
if (this.props.show) {
this.handleEnter();
this.handleEntered();
}
}