Merge pull request #18024 from ramonlsouza/fix-connection-settings

fix: connection status modal "adjusting your settings" button not working as expected
This commit is contained in:
Anton Georgiev 2023-05-31 10:03:32 -04:00 committed by GitHub
commit 2a98312acd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,7 @@ const BaseModal = (props) => {
onRequestClose={onRequestClose}
className={className}
overlayClassName={overlayClassName}
shouldReturnFocusAfterClose={false}
>
{children}
</Styled.BaseModal>

View File

@ -81,7 +81,7 @@ class ConnectionStatusIcon extends PureComponent {
<Styled.Label>
{intl.formatMessage(intlMessages.label)}
</Styled.Label>
{(level === 'critical' || level === 'danger') || true
{(level === 'critical' || level === 'danger') || isSettingsMenuModalOpen
? (
<div>
<Styled.Settings
@ -94,7 +94,7 @@ class ConnectionStatusIcon extends PureComponent {
selectedTab={2}
{...{
onRequestClose: () => this.setSettingsMenuModalIsOpen(false),
priority: "low",
priority: "medium",
setIsOpen: this.setSettingsMenuModalIsOpen,
isOpen: isSettingsMenuModalOpen,
}}