#15013·ag-grid

[Bug]: Row/header context menu closes immediately after opening via long-press on iOS PWA (regression since v36)

Author: rcgliotCreated Aug 31, 2026Updated Aug 31, 2026
Labelstriage

Link to reproducible scenario

https://www.ag-grid.com/example/

Describe the bug

Steps to reproduce

  1. On an iOS device, add a web app using AG Grid to the home screen (so it launches in standalone/PWA display mode, not a Safari tab).
  2. Open the app, navigate to a grid with row selection and a context menu wired to cellContextMenu (or the built-in context menu).
  3. Long-press a row until the context menu opens (ag-grid's TouchService.mockRowContextMenu, iOS-only, 550ms long-press timer).
  4. Watch the menu immediately after it opens.

Actual behaviour The context menu opens correctly on the long-press, then closes on its own roughly 300ms after the finger lifts — before any deliberate interaction. Confirmed via on-device diagnostic logging (with a framework MatMenu wired to cellContextMenu) that a real mousedown/click sequence lands on the menu ~306ms after touchend, with click.defaultPrevented === false, and the menu's own close handler reports reason: 'click'. This matches iOS's well-known delayed "ghost click" (issued after a tap in case a second tap follows for double-tap-zoom) — except it's landing on UI that didn't exist yet when the original touch started, so it silently activates or dismisses whatever the long-press just opened.

Expected behaviour: The context menu should stay open until the user deliberately interacts with it or taps elsewhere, matching the behaviour on v35.3.1 (confirmed: this does not reproduce on 35.3.1, only on 36.1.0).

Version

36.1.0

Does the issue occur for a specific framework only?

Angular

Is the issue only observable on a specific browser?

Safari