# What changed in @floating-ui/react

> 4 changes in @floating-ui/react 0.27 from its official release notes, upgrade guides and advisories. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/@floating-ui/react/

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

## @floating-ui/react 0.27

### Fixes and other changes

- Optional properties now support explicit undefined when using exactOptionalPropertyTypes. (0.27.20) — [release notes](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.27.20)
- Fixes shadow root host lookup when a parent element is an anchor. (0.27.19) — [release notes](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.27.19)
- Non-primary inside mouse presses are ignored for click outside dismissal. (0.27.19) — [release notes](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.27.19)
- Uses WeakRef for previously focused elements. (0.27.18) — [release notes](https://github.com/floating-ui/floating-ui/releases/tag/%40floating-ui/react%400.27.18)
