# What changed in @radix-ui/react-context-menu

> 14 changes in @radix-ui/react-context-menu 2 from its official release notes, upgrade guides and advisories: 4 new APIs and options. Each one cited. Sources checked 2026-10-21. HTML: https://unstale.sh/npm/@radix-ui/react-context-menu/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @radix-ui/react-context-menu 2

### New APIs and options

- The align prop can now be overridden on ContextMenu.Content. (2.4.0) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#240)
- The side prop can now be overridden on ContextMenu.Content. (2.4.0) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#240)
- The sideOffset prop can now be overridden on ContextMenu.Content. (2.4.0) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#240)
- ContextMenu.Root now supports a controlled open prop for reading the open state and closing the menu programmatically; programmatic opening is discouraged because positioning depends on user interaction. (2.3.0) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#230)

### Performance

- Unused components can now be dropped by bundlers; component parts use pure annotations and named render functions to enable dead-code elimination. (2.3.4) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#234)

### Tooling

- The package is republished through CI with a provenance attestation, which may inform package verification decisions. (2.3.5) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#235)

### Fixes and other changes

- Fixed a type regression so callback props accept handlers whose parameter is narrower than the prop's. (2.4.1) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#241)
- Optional types now allow explicit undefined for compatibility with TypeScript's exactOptionalPropertyTypes flag. (2.4.0) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#240)
- Reverted breaking changes that caused compatibility issues with React Server Components. (2.3.7) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#237)
- Conditional exports now let production builds drop development-only warnings. (2.3.4) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#234)
- Re-triggering an already-open ContextMenu now re-anchors it to the latest pointer position. (2.3.3) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#233)
- Menu items, tab triggers, toolbar links, and select items no longer intercept Space or Enter when those keys originate from focusable descendants. (2.3.3) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#233)
- Fixed menus and submenus remaining open after a window loses focus. (2.3.1) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#231)
- Fixed submenus staying expanded after reopening the context menu on long-press touch events. (2.3.0) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/context-menu/CHANGELOG.md#230)
