Comments (11)
Need to check.
from primitives.
I won't create issue "context menu + modal dialog bug" because it was fixed by updating @radix-ui/react-dialog from 1.0.4 to 1.0.5 in my project)
from primitives.
What is the issue here? I don't see anything wrong when I open the sandbox. Can you please be more descriptive?
from primitives.
The context menu item is selected by right click, which should not happen.
In this example, the problem does not appear to be critical. But in my real application, when I select a context menu item, a radix modal window opens. The modal window also uses the portal. A bug occurs, after which the context menu cannot be opened.
I tried to make a minimal example, because looks like the problem is in the right-click selection.
If necessary, I can make an example with a modal window.
from primitives.
I still don't see what you mean in the video or when I try with the sandbox.
The context menu item is selected by right click, which should not happen.
What do you mean here?
from primitives.
Function "onSelect" should be called only on left mouse click, but in the video it's called on right mouse click. (see top left corner, and console on the video)
from primitives.
Yeah I see, I can't seem to reproduce it using your sandbox though…
from primitives.
You need to quickly right-click and move the mouse to the right and down.
from primitives.
I see, the speed doesn't matter though.
What you are doing is what I do here in the video but just super fast, so it feels like a bug but isn't really one:
- right-click but keep holding (
pointerdown
) - move cursor over an item (
pointermove
) - release cursor (
pointerup
)
CleanShot.2024-03-05.at.18.28.18.mp4
I can do exactly the same thing with the native menu going fast too.
from primitives.
Yes it is.
Then it's probably worth closing the issue. I’ll create a new issue for a context menu with modal window bug later.
from primitives.
It would be the same thing though right?
from primitives.
Related Issues (20)
- [ContextMenu] Default context menu with "html" target on border rightclick HOT 4
- No [data-state] and [data-motion] attributes on NavigationMenu.Content HOT 1
- DropMenu And AlertDialog Portal Colliding HOT 2
- @radix-ui/react-presence doesn't handle the `animationend` event correctly when keyframe has escapable character HOT 2
- `@radix-ui/react-tabs`: `keepRendered` options HOT 1
- Expose props for configuring floating-ui `autoUpdate` options like `layoutShift` HOT 1
- [Tooltip] Unable to click content inside tooltip after dismissing tooltip by clicking the trigger HOT 1
- [Slot] React 18.3.0 canary, ref is now a regular prop HOT 3
- [Select] Select content not showing in Dialog due to z-index HOT 4
- [NavigationMenu] Scope Propagation Failure in Custom Components Extending NavigationMenu
- [Slider][ScrollArea] Releasing the pointer over a button wrongly triggers an onClick event in Firefox HOT 2
- Checkbox's hidden input positions itself wrong
- Radix select showing weird behaviour when inside tippy popup
- Animation property passed via inline styles to Radix popover content is always overrided HOT 1
- ScrollArea - State/context change causes reflow and breaks `height: 100%` HOT 1
- [DismissableLayer] After clicking on element that stops propagation, 2 outside clicks are required to close the layer
- Incorrect Behavior of Components with 'sticky' Property within ScrollAreaViewport
- Force Dropdown to stay within viewport/screen boundaries (fix overflow when dropdown is too big)
- Parcel Scope Hoisting should be disabled HOT 1
- add the ability to change the value of a thumb from an outside input
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from primitives.