Repository navigation
feat(ContextMenu): add open and pressOpenDelay props - #7148
Conversation
commit: |
|
Client output of the apps in
Raw sizes
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughContextMenuProps now inherits the open and pressOpenDelay props, and ContextMenu forwards them to ContextMenuRoot. A test checks that content renders when open is true. The documentation and example show controlling open state with v-model:open and toggling it with the O key. Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The controlled ContextMenu API and its documented trigger anchoring match the locked dependency; no actionable merge risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
fd8f882 to
d39db8a
Compare
🔗 Linked issue
Replaces #7136, which GitHub marked as merged when the stack was reordered.
❓ Type of change
📚 Description
Reka UI 2.11 adds two props to
ContextMenuRoot:open: the open state can be controlled, sov-model:openworks like onDropdownMenu(fix(ContextMenu): support controlled open state unovue/reka-ui#2936).pressOpenDelay: the duration of the long press that opens the menu on touch,700by default.Both already reach
ContextMenuRootonv4as fallthrough attributes, but they are not part ofContextMenuProps. This declares and forwards them, so they are typed, listed in the props table and can be set through<UTheme :props>.The docs get a "Control open state" section. When opened programmatically, the menu is anchored to the trigger instead of the cursor.
📝 Checklist