Skip to content

feat(ContextMenu): add open and pressOpenDelay props - #7136

Merged
benjamincanac merged 5 commits into
feat/input-menu-unmount-on-hidefrom
feat/context-menu-open
Oct 6, 2026
Merged

benjamincanac merged 5 commits into
feat/input-menu-unmount-on-hidefrom
feat/context-menu-open

Conversation

@benjamincanac

Copy link
Copy Markdown
Member

🔗 Linked issue

Stacked on #7132.

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Reka UI 2.11 adds two props to ContextMenuRoot, both forwarded from ContextMenu here:

#7127 omits both from ContextMenuProps so the bump alone doesn't expose props that do nothing.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ui Ready Ready Preview Oct 6, 2026 3:54pm UTC
ui-repl Ready Ready Preview Oct 6, 2026 3:54pm UTC

Request Review

@benjamincanac
benjamincanac added this pull request to stack #7133 October 6, 2026 09:52
@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5a88dc4b-66b1-479d-abca-211e4d75871c
📥 Commits

Reviewing files that changed from the base of the PR and between b37472c and e11fb6c.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ef1667d2-950a-4463-92a4-67a68477fe00
📥 Commits

Reviewing files that changed from the base of the PR and between 5b73b27 and b37472c.

📒 Files selected for processing (4)
  • docs/app/components/content/examples/context-menu/ContextMenuOpenExample.vue
  • docs/content/docs/2.components/context-menu.md
  • src/runtime/components/ContextMenu.vue
  • test/components/ContextMenu.spec.ts

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


📝 Walkthrough

Walkthrough

ContextMenu now accepts and forwards the open and pressOpenDelay props to ContextMenuRoot. A test verifies that open: true renders the menu content. The documentation and example show controlling the open state with v-model:open and toggling it with the O shortcut.

Priority: ⬇️ Low

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

Merge Risk: ⚪ Minimal · up to b3747

The documented controlled ContextMenu behavior is supported by the dependency and wrapper, with no identified merge-blocking risk.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: adding the open and pressOpenDelay props to ContextMenu.
Description check ✅ Passed The description explains both props, their behavior, and the related documentation update. It matches the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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

Comment @coderabbitai help to get the list of available commands.

@codspeed

codspeed Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing feat/context-menu-open (dccec84) with feat/input-menu-unmount-on-hide (32f8659)1

Open in CodSpeed

Footnotes

  1. No successful run was found on feat/input-menu-unmount-on-hide (dccec84) during the generation of this report, so 74f0711 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@pkg-pr-new

pkg-pr-new Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/@nuxt/ui@7136

commit: e11fb6c

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Client output of the apps in test/bundle, compared to the base branch.

Fixture JS (gzip) CSS (gzip)
nuxt 115.5 kB (-2.3 kB, -2.0%) 27.2 kB (+0.3 kB, +1.1%)
nuxt-detection 115.5 kB (-2.3 kB, -2.0%) 10.5 kB (+0.2 kB, +1.8%)
nuxt-full 837.8 kB (-1.6 kB, -0.2%) 27.4 kB (+0.3 kB, +1.1%)
vue 92.3 kB (+3 B, +0.0%) 25.4 kB
vue-detection 92.3 kB (+3 B, +0.0%) 8.7 kB
Raw sizes
Fixture JS CSS
nuxt 333.3 kB (-8.1 kB, -2.4%) 202.0 kB (+0.4 kB, +0.2%)
nuxt-detection 333.3 kB (-8.1 kB, -2.4%) 61.3 kB (+0.2 kB, +0.4%)
nuxt-full 2644.4 kB (-6.6 kB, -0.3%) 202.3 kB (+0.4 kB, +0.2%)
vue 277.8 kB (+8 B, +0.0%) 200.0 kB
vue-detection 277.8 kB (+8 B, +0.0%) 57.8 kB

Base automatically changed from feat/toast-action-close-on-click to feat/input-menu-unmount-on-hide October 6, 2026 15:47
@benjamincanac
benjamincanac merged commit dccec84 into v4 Oct 6, 2026
12 of 16 checks passed
@benjamincanac
benjamincanac deleted the feat/context-menu-open branch October 6, 2026 15:47
@benjamincanac
benjamincanac restored the feat/context-menu-open branch October 6, 2026 15:48

This branch was successfully deployed

2 active deployments
Preview – ui — dccec844 Deployed Oct 6, 2026 by vercel[bot]
Preview – ui-repl — dccec844 Deployed Oct 6, 2026 by vercel[bot]
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.

1 participant