Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/components/Modal/BaseModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class BaseModal extends PureComponent {
return;
}

Modal.willAlertModalBecomeVisible(true);
Comment thread
allroundexperts marked this conversation as resolved.

// To handle closing any modal already visible when this modal is mounted, i.e. PopoverReportActionContextMenu
Modal.setCloseModal(this.props.onClose);
}
Expand All @@ -52,6 +54,10 @@ class BaseModal extends PureComponent {
// we don't want to call the onModalHide on unmount
this.hideModal(this.props.isVisible);

if (this.props.isVisible) {
Modal.willAlertModalBecomeVisible(false);
}

// To prevent closing any modal already unmounted when this modal still remains as visible state
Modal.setCloseModal(null);
}
Expand Down