Skip to content

Commit

Permalink
help and user menus can be closed by clicking elsewhere or Escape key
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jul 26, 2024
1 parent 2c6e3fa commit c9e80ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/AppLayout/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ export const AppLayout: React.FC<AppLayoutProps> = ({ children }) => {
></MenuToggle>
)}
isOpen={showHelpDropdown}
onOpenChange={(v) => setShowHelpDropdown(v)}
onOpenChangeKeys={['Escape']}
popperProps={{
position: 'right',
}}
Expand All @@ -437,6 +439,8 @@ export const AppLayout: React.FC<AppLayoutProps> = ({ children }) => {
onSelect={() => setShowUserInfoDropdown(false)}
toggle={UserInfoToggle}
isOpen={showUserInfoDropdown}
onOpenChange={(v) => setShowUserInfoDropdown(v)}
onOpenChangeKeys={['Escape']}
popperProps={{
position: 'right',
}}
Expand Down

0 comments on commit c9e80ee

Please sign in to comment.