Releases: theKashey/focus-lock
Releases · theKashey/focus-lock
"Semantically correct" v1
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
andgetRelativeFocusable
- please notice - they are actually low level and might require some understanding before use
Better Iframes
Bug Fixes
- Improve support for iframes #43, shout out to @youennPennarun for implementation
Shadow dom
Fixes
- added support for shadow dom #30
Programmatic Focus
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)