Context
An outside user tried the 13.3.0 issues showcase after the release announcement, and the operator relayed the report on 2026-10-21. With a column's value menu open, right-clicking the header's arrow shows the browser's own context menu (Back, Forward, Reload…) on top of the value menu.
Reproduced on neomjs.com 13.3.0, at dist/production/examples/grid/issues/index.html. A contextmenu event dispatched on the State header button is default-prevented, so no browser menu appears. The same event on that header's arrow (.neo-grid-menu-trigger) is not.
The Problem
#19643 lets a header open its value menu with a right-click. The arrow is part of that same control, yet a right-click on it falls through to the browser. That puts two menus on screen at once.
The Architectural Reality
src/grid/header/plugin/Menu.mjs:90 adds neo-grid-menu-enabled to the header button.
Menu.mjs:119-122 registers that class as a contextmenu default-prevention target through Neo.main.DomEvents.registerPreventDefaultTargets.
src/main/DomEvents.mjs:539 prevents the default only when the event path contains a registered class.
- The header's vdom is wrapped (
src/grid/header/Button.mjs:366, .neo-grid-menu-wrapper). The arrow is created with the wrapper as its parent (Menu.mjs:93), which makes it the button's sibling. Its event path therefore never contains the button, or neo-grid-menu-enabled.
The Fix
Make a right-click on the arrow behave like one on the header:
- the browser menu stays closed, either by also registering
neo-grid-menu-trigger as a contextmenu target or by moving the class to the wrapper;
- the value menu opens, or stays open.
Check which component the plugin's contextmenu listener reaches when the event starts on the arrow.
Acceptance Criteria
Out of Scope
Right-click on headers that have no value menu (that is a separate ticket), and the menu's content.
Related: #19643 (header menus) · #19761 (the showcase)
Live latest-open sweep: the latest 20 open issues, read at 2026-10-21T12:25Z; no equivalent. gh search issues for "context menu header" returned nothing.
A2A claim sweep: the last 12 messages, all read-states; no claim on the header menus.
unowned-rationale: reserved for an outside contributor, like the release-testing day's examples (#19930–#19934). It is small, located to two files, and has a browser-test pointer.
Retrieval Hint: "header menu arrow right click browser context menu preventDefault target"
Origin Session ID: ccf66974-a439-4e14-ba8c-4f3f74d87606
Context
An outside user tried the 13.3.0 issues showcase after the release announcement, and the operator relayed the report on 2026-10-21. With a column's value menu open, right-clicking the header's arrow shows the browser's own context menu (Back, Forward, Reload…) on top of the value menu.
Reproduced on neomjs.com 13.3.0, at
dist/production/examples/grid/issues/index.html. Acontextmenuevent dispatched on the State header button is default-prevented, so no browser menu appears. The same event on that header's arrow (.neo-grid-menu-trigger) is not.The Problem
#19643 lets a header open its value menu with a right-click. The arrow is part of that same control, yet a right-click on it falls through to the browser. That puts two menus on screen at once.
The Architectural Reality
src/grid/header/plugin/Menu.mjs:90addsneo-grid-menu-enabledto the header button.Menu.mjs:119-122registers that class as acontextmenudefault-prevention target throughNeo.main.DomEvents.registerPreventDefaultTargets.src/main/DomEvents.mjs:539prevents the default only when the event path contains a registered class.src/grid/header/Button.mjs:366,.neo-grid-menu-wrapper). The arrow is created with the wrapper as its parent (Menu.mjs:93), which makes it the button's sibling. Its event path therefore never contains the button, orneo-grid-menu-enabled.The Fix
Make a right-click on the arrow behave like one on the header:
neo-grid-menu-triggeras acontextmenutarget or by moving the class to the wrapper;Check which component the plugin's
contextmenulistener reaches when the event starts on the arrow.Acceptance Criteria
dev.test/playwright/e2e/grid/IssuesShowcase.spec.mjsruns the showcase in the engine tier, without the Neural Link, and can read the event'sdefaultPrevented.Out of Scope
Right-click on headers that have no value menu (that is a separate ticket), and the menu's content.
Related: #19643 (header menus) · #19761 (the showcase) Live latest-open sweep: the latest 20 open issues, read at 2026-10-21T12:25Z; no equivalent.
gh search issuesfor "context menu header" returned nothing. A2A claim sweep: the last 12 messages, all read-states; no claim on the header menus. unowned-rationale: reserved for an outside contributor, like the release-testing day's examples (#19930–#19934). It is small, located to two files, and has a browser-test pointer.Retrieval Hint: "header menu arrow right click browser context menu preventDefault target" Origin Session ID: ccf66974-a439-4e14-ba8c-4f3f74d87606