Fix close command menu button (#12282)
Fixes #12280 The `dataClickOutsideId` and `dataGloballyPreventClickOutside` props weren't passed to the button components. This PR fixes this and introduces the type `ClickOutsideAttributes`. https://github.com/user-attachments/assets/38b1a6f9-8f3a-43d2-aa7b-aaa259ac6737
This commit is contained in:
@ -125,9 +125,7 @@ export const PageHeaderToggleCommandMenuButton = () => {
|
||||
animatedSvg={
|
||||
<AnimatedIcon isCommandMenuOpened={isCommandMenuOpened} />
|
||||
}
|
||||
data-click-outside-id={
|
||||
PAGE_HEADER_COMMAND_MENU_BUTTON_CLICK_OUTSIDE_ID
|
||||
}
|
||||
dataClickOutsideId={PAGE_HEADER_COMMAND_MENU_BUTTON_CLICK_OUTSIDE_ID}
|
||||
dataTestId="page-header-command-menu-button"
|
||||
size={isMobile ? 'medium' : 'small'}
|
||||
variant="secondary"
|
||||
|
||||
Reference in New Issue
Block a user