You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(NavigationMenu): emit interactOutside on outside pointer down - #3260
Outside pointer interactions now trigger both outside-interaction notifications. Preventing the interaction from closing the menu keeps it open as expected.
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.
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: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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