Skip to content

Programmatic Focus

Compare
Choose a tag to compare
@theKashey theKashey released this 30 Sep 11:29
· 132 commits to master since this release

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