mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-25 18:42:31 +01:00
Reset modal spinner state when dismissed; closes #2647
This commit is contained in:
parent
027c705733
commit
7ec614ed2c
@ -43,7 +43,7 @@ function asModal<P extends object> (modalProps?: ExtendedModalProps | ((props: P
|
||||
componentDidUpdate (prevProps: Readonly<P & AsModalProps>) {
|
||||
if (prevProps.visible && !this.props.visible) {
|
||||
// noinspection JSPotentiallyInvalidUsageOfThis
|
||||
this.setState({ visible: false });
|
||||
this.setState({ visible: false, showSpinnerOverlay: false });
|
||||
} else if (!prevProps.visible && this.props.visible) {
|
||||
// noinspection JSPotentiallyInvalidUsageOfThis
|
||||
this.setState({ render: true, visible: true });
|
||||
|
Loading…
Reference in New Issue
Block a user