Skip to content

Commit

Permalink
[NavigationMenu] Remove unsuported disableOutsidePointerEvents prop (
Browse files Browse the repository at this point in the history
…radix-ui#2741)

* [NavigationMenu] Remove unsuported `disableOutsidePointerEvents` prop

Fixes radix-ui#2731

* Trigger status?

* Revert "Trigger status?"

This reverts commit 3c827c0.
  • Loading branch information
benoitgrelard authored Feb 29, 2024
1 parent 8e4dfde commit fdc34ad
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 fdc34ad

Please sign in to comment.