NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4658 most downloaded on npm
DOM trap for a focus
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 9 months
Some releases are documented
notes for 29 of 55 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
57 releases · first in 2017
Nothing published for this version
correct WeakRef for old Safari. fixes #68
correct first of two return case
One column per quarter.
### Bug Fixes - handle no activeElement case
Nothing published for this version
support lock reactivation with no tabble nodes, fixes #63
Nothing published for this version
Nothing published for this version
Nothing published for this version
correct abiity to restore focus on any focusable, fixes #54
default export still present, but deprecated. Please use named one - import { moveFocusInside } from 'focus-lock'
import { moveFocusInside } from 'focus-lock'getFocusableNodes, getTabbableNodes and getRelativeFocusable
secure access to cross-origin iframes, fixes #45
Improve support for iframes #43, shout out to @youennPennarun for implementation
correct behavior for focusable-less targets. Implements #41
correct autofocus behavior; accept empty data-autofocus prop
use prototype-based node.contains, fixes #36
Nothing published for this version
added support for shadow dom #30
suport focusOptions in setFocus
Nothing published for this version
allow setting focusOptions for prev/next focus actions
Nothing published for this version
readonly control can be focused, fixes #18
FocusLock always was used to control the focus. To check if the new focus is in the "correct" position, and move it to the right one if not. In other
FocusLock always was used to control the focus. To check if the new focus is in the "correct" position, and move it to the right one if not. In other words - it always knew the "right order" of focusable or tabbable elements.
0.8.0 exposes that knowledge via new "sibling" API - focusNextElement and focusPrevElement 🥳
Nothing published for this version
Nothing published for this version
better handle jump out conditions. Focus on the active radio and look for tailing guards as well
detect document using nodeType, fixes #11
### Bug Fixes - dont use array.find, fixes #9
### Features - sidecar for constants
### Bug Fixes - allow top guard jump
### Bug Fixes - fix guard order
# 0.6.0 (2019-03-09) ### Features - multi target lock
Nothing published for this version
failback to focusable node if tabble not exists
disabled buttons with tab indexes
Nothing published for this version
# 0.5.0 (2018-10-18)
Nothing published for this version
Nothing published for this version
# 0.4.0 (2018-08-28) # 0.3.0 (2018-05-08)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
# 0.2.0 (2018-03-15)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →