Skip to content

Releases: theKashey/focus-lock

"Semantically correct" v1

12 Oct 03:56
Compare
Choose a tag to compare

Features

  • version with major >=1 are subject for autoupdate, while any version with a leading zero is considered as pinned. Major version change should unblock a little bit more automatic version bumps

Breaking changes

  • default export still present, but deprecated. Please use named one - import { moveFocusInside } from 'focus-lock'
  • So internal functions exposed from this package got a naming refresh, see rename table - #50 (comment)

Features

  • new low level primitives were exposed, such as getFocusableNodes, getTabbableNodes and getRelativeFocusable
    • please notice - they are actually low level and might require some understanding before use

Better Iframes

28 Jan 03:35
Compare
Choose a tag to compare

Bug Fixes

Shadow dom

14 Feb 03:10
Compare
Choose a tag to compare

Fixes

  • added support for shadow dom #30

Programmatic Focus

30 Sep 11:29
Compare
Choose a tag to compare

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 🥳

Bug Fixes

  • readonly control can be focused, fixes #18 (842d578)
  • speedup nested nodes resolution O(n^2) to O(nlogn) (5bc1498)

Features