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

> 8 changes in @radix-ui/react-dropdown-menu 2 from its official release notes, upgrade guides and advisories: 1 security. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/@radix-ui/react-dropdown-menu/

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

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

### Security

- Republished through CI so the package includes a provenance attestation, allowing developers to verify its origin. (2.1.22) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/dropdown-menu/CHANGELOG.md#2122)

### Performance

- Improved tree-shaking lets bundlers drop unused components. (2.1.21) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/dropdown-menu/CHANGELOG.md#2121)

### Fixes and other changes

- Fixed a type regression so callback props declared as methods accept handlers whose parameter is narrower than the prop's. (2.2.1) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/dropdown-menu/CHANGELOG.md#221)
- Optional types now allow explicit undefined for compatibility with TypeScript's exactOptionalPropertyTypes flag. (2.2.0) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/dropdown-menu/CHANGELOG.md#220)
- Reverted breaking changes that caused compatibility issues with React Server Components. (2.1.24) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/dropdown-menu/CHANGELOG.md#2124)
- Menu items no longer intercept Space or Enter when those keys originate from focusable descendants. (2.1.20) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/dropdown-menu/CHANGELOG.md#2120)
- Fixed an infinite re-render loop in React 19 caused by unstable composed ref callback references. (2.1.19) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/dropdown-menu/CHANGELOG.md#2119)
- Menus and submenus no longer remain open after the window loses focus. (2.1.18) — [release notes](https://github.com/radix-ui/primitives/blob/925c88b773bb32aecf1b52a296a1a21ba7a720b9/packages/react/dropdown-menu/CHANGELOG.md#2118)
