1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-03-29 21:01:01 +02:00

[GH-4300]: Fix menu closing on toggling random icons. (#4477)

* fix: menu closing on toggling random icons

* Also fixed for plugin

Co-authored-by: Harshil Sharma <18575143+harshilsharma63@users.noreply.github.com>
This commit is contained in:
Aditya Sharma 2023-01-19 11:57:09 +05:30 committed by GitHub
parent 8323b58ae0
commit 5c21b59383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,7 @@ const GlobalHeaderSettingsMenu = (props: Props) => {
name={intl.formatMessage({id: 'Sidebar.random-icons', defaultMessage: 'Random icons'})}
isOn={randomIcons}
onClick={async () => toggleRandomIcons()}
suppressItemClicked={true}
/>
{me?.is_guest !== true &&
<Menu.Text

View File

@ -163,6 +163,7 @@ const SidebarSettingsMenu = (props: Props) => {
name={intl.formatMessage({id: 'Sidebar.random-icons', defaultMessage: 'Random icons'})}
isOn={randomIcons}
onClick={async () => toggleRandomIcons()}
suppressItemClicked={true}
/>
</Menu>
</MenuWrapper>