---
title: "focus-trap 8.0.0 Breaking Changes on npm | Since.dev"
description: "What each focus-trap release removed, renamed or changed: 8 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/focus-trap
last_updated: 2026-12-04
---

# focus-trap breaking changes

focus-trap 8.0.0 (January 28, 2026) is its newest release with breaking changes. The first: Behavior changed onPostActivate. Every breaking API change we have recorded in focus-trap on npm: 8 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `8.2.6`, released November 22, 2026. [Source repository](https://github.com/focus-trap/focus-trap)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [7.0.0](#v-7-0-0) to [8.0.0](#v-8-0-0): 1 breaking change in 1 version.
- From [6.0.0](#v-6-0-0) to [8.0.0](#v-8-0-0): 3 breaking changes in 2 versions.

## focus-trap 8.0.0 breaking changes

focus-trap 8.0.0, released January 28, 2026: 1 breaking change.

- **Behavior changed** `onPostActivate`  

onPostActivate() is now called only after the initial focus node has been focused and the trap fully activated. Code that assumed the initial focus node was not yet focused inside onPostActivate() must be updated, and tests may need delays... [github.com](https://github.com/focus-trap/focus-trap/releases/tag/v8.0.0)

## focus-trap 7.0.0 breaking changes

focus-trap 7.0.0, released August 17, 2022: 2 breaking changes.

- **Removed**  

Internet Explorer support has been removed entirely. Code that must run in IE will no longer be supported. [github.com](https://github.com/focus-trap/focus-trap/releases/tag/v7.0.0)
- **Behavior changed**  

The tabbable dependency moved to v6.0.0, which changes behavior for detached nodes under its default displayCheck setting. Check code that relies on focus trapping with detached nodes. [github.com](https://github.com/focus-trap/focus-trap/releases/tag/v7.0.0)

## focus-trap 6.0.0 breaking changes

focus-trap 6.0.0, released September 4, 2020: 5 breaking changes.

- **Removed** `"focus-trap"`  

"focus-trap" was removed in focus-trap 6.0.0 [npmjs.com](https://www.npmjs.com/package/focus-trap/v/6.0.0)
- **Renamed** `"focus-trap".FocusTarget`  

Use 'focus-trap'.FocusTarget instead. [npmjs.com](https://www.npmjs.com/package/focus-trap/v/6.0.0)
- **Renamed** `"focus-trap".FocusTrap`  

Use 'focus-trap'.FocusTrap instead. [npmjs.com](https://www.npmjs.com/package/focus-trap/v/6.0.0)
- **Renamed** `"focus-trap".Options`  

Use 'focus-trap'.Options instead. [npmjs.com](https://www.npmjs.com/package/focus-trap/v/6.0.0)
- **Signature changed** `"focus-trap".Options.allowOutsideClick`  

Was allowOutsideClick?: (event: MouseEvent) => boolean; now allowOutsideClick?: boolean | MouseEventToBoolean. [npmjs.com](https://www.npmjs.com/package/focus-trap/v/6.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
