Skip to content

Commit

Permalink
[NavigationMenu] Remove unsuported disableOutsidePointerEvents prop
Browse files Browse the repository at this point in the history
Fixes #2731
  • Loading branch information
benoitgrelard committed Feb 29, 2024
1 parent 8e4dfde commit 6dc42b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .yarn/versions/e97b6ff3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
releases:
"@radix-ui/react-navigation-menu": patch

declined:
- primitives
3 changes: 2 additions & 1 deletion packages/react/navigation-menu/src/NavigationMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ interface NavigationMenuContentImplPrivateProps {
onRootContentClose(): void;
}
interface NavigationMenuContentImplProps
extends Omit<DismissableLayerProps, 'onDismiss'>,
extends Omit<DismissableLayerProps, 'onDismiss' | 'disableOutsidePointerEvents'>,
NavigationMenuContentImplPrivateProps {}

const NavigationMenuContentImpl = React.forwardRef<
Expand Down Expand Up @@ -922,6 +922,7 @@ const NavigationMenuContentImpl = React.forwardRef<
data-orientation={context.orientation}
{...contentProps}
ref={composedRefs}
disableOutsidePointerEvents={false}
onDismiss={() => {
const rootContentDismissEvent = new Event(ROOT_CONTENT_DISMISS, {
bubbles: true,
Expand Down

0 comments on commit 6dc42b1

Please sign in to comment.