question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ContextMenu] iOS and iPadOS touch support

See original GitHub issue

Bug report

I’m not sure of the right way to classify this issue: is it a bug report, feature request, or discussion? The contextmenu event doesn’t fire on iOS and iPadOS when using touch input (it does on iPad OS when using a mouse), but my general belief is that all components should work cross browser and cross device (latest versions only) even if some browser and device specific workarounds are required.

Current Behavior

The Radix context menu never appears on iOS and iPadOS when using touch input.

Expected behavior

To be able to access the Radix context menu on iOS and iPadOS when using touch input.

Reproducible example

Use the doc page demos on an iOS or iPadOS device: https://radix-ui.com/primitives/docs/components/context-menu

Suggested solution

Android fires the contextmenu event on long press, so maybe implement a long press trigger on iOS and iPadOS?

Your environment

Software Name(s) Version
Radix Package(s) Context Menu v0.0.19
React n/a v17
Operating System iOS and iPadOS v14

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

2reactions
benoitgrelardcommented, Jun 24, 2021

@rafgraph this has now been released.

0reactions
rafgraphcommented, Jun 23, 2021

Thanks @benoitgrelard, that was quick!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Context menus - Components - Human Interface Guidelines
iPadOS lets you reveal a context menu when people perform a long press on the touchscreen or use a secondary click with an...
Read more >
iPad: can not trigger context menu outside of Editor ... - GitHub
iPad Currently you can trigger a context menu on the editor by holding a click. However you can not trigger a context menu...
Read more >
Quickly bringing up context menus in VoiceOver in iOS 13.2
With contextual menus gaining more importance as apps on iOS and iPadOS get more complex, this change is definitely welcomed. Also, with the ......
Read more >
New context menus are now available in Office for iPad
It is worth mentioning that new context menus are available only when you connect a mouse or trackpad to your iPad. In a...
Read more >
Context Menus in iOS - Medium
Context Menus can be triggered either by long press or by 3D Touch (if the device supports). Context Menu Vs. Peek and Pop ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found