From 7ec614ed2c4f19bb871fbd78147111145acf8f06 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 2 Nov 2020 20:03:28 -0800 Subject: [PATCH] Reset modal spinner state when dismissed; closes #2647 --- resources/scripts/hoc/asModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/hoc/asModal.tsx b/resources/scripts/hoc/asModal.tsx index 81027f5d3..1e680fe33 100644 --- a/resources/scripts/hoc/asModal.tsx +++ b/resources/scripts/hoc/asModal.tsx @@ -43,7 +43,7 @@ function asModal

(modalProps?: ExtendedModalProps | ((props: P componentDidUpdate (prevProps: Readonly

) { 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 });