Skip to content

fix(NavigationMenu): emit interactOutside on outside pointer down - #3260

Merged
zernonia merged 1 commit into
unovue:v2from
arba-octo:fix/navigation-menu-interact-outside
Nov 19, 2026
Merged

zernonia merged 1 commit into
unovue:v2from
arba-octo:fix/navigation-menu-interact-outside

Conversation

@arba-octo

@arba-octo arba-octo commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Fix NavigationMenu not emitting interactOutside on outside pointer down. Calling preventDefault() in this handler now keeps the menu open.

Part of #3248

Summary by CodeRabbit

  • Bug Fixes
    • Outside pointer interactions now trigger both outside-interaction notifications. Preventing the interaction from closing the menu keeps it open as expected.

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

NavigationMenu now emits interactOutside when a pointer-down-outside event occurs. Tests check both outside-event counts and whether the menu remains open when closing is prevented.

Changes: NavigationMenu outside pointer events

Layer / File(s) Summary
Pointer-down event handling and tests
packages/core/src/NavigationMenu/NavigationMenuContentImpl.vue, packages/core/src/NavigationMenu/NavigationMenu.test.ts
The pointer-down-outside handler emits interactOutside. Tests check that both outside-interaction events fire once and that the dismissable layer remains only when closing is prevented.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

Possibly related PRs

  • unovue/reka-ui#3252: Both changes modify outside-event handling and test event counts in NavigationMenu.
  • unovue/reka-ui#3078: This PR changes the same NavigationMenuContentImpl.vue handler and its outside-event forwarding.

Suggested reviewers: zernonia

Merge Risk: Minimal · up to 61773

NavigationMenu now emits interactOutside on outside pointer down, and calling preventDefault in that handler keeps the menu open. The added tests cover this behavior. No actionable merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: NavigationMenu now emits interactOutside on an outside pointer down. The raw summary confirms that handlePointerDownOutside emits interactOutside alongside pointerDownOutsi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: NavigationMenu now emits interactOutside on an outside pointer down. The raw summary confirms that handlePointerDownOutside emits interactOutside alongside pointerDownOutside, and the test covers both events with prevention on and off. The title is specific, uses the conventional fix(scope) prefix, and fits the 65-character length guideline.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: unovue/reka-ui
  • Branch: v2
  • File: .coderabbit.yaml
  • Commit: 1e60e05
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 927b5618-0f33-40b9-b16b-2aa0b70d6373
Commits

Reviewing files that changed from the base of the PR and between 1e60e05 and 61773f5.

Files selected for processing: 2

  • packages/core/src/NavigationMenu/NavigationMenu.test.ts
  • packages/core/src/NavigationMenu/NavigationMenuContentImpl.vue

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@pkg-pr-new

pkg-pr-new Bot commented Nov 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/reka-ui@3260

commit: 61773f5

@zernonia
zernonia merged commit 2f92864 into unovue:v2 Nov 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants