Skip to content

Updating focus management

Latest
Compare
Choose a tag to compare
@theKashey theKashey released this 25 Aug 09:07
· 22 commits to master since this release

This release changes the way focus is managed in some edge cases:

  • then content inside FocusLock is updated in a way that the previosly focused element no longer focusable (or deleted)
    • before: focus moves to the body
    • now: focus moves to the nearest sibling (of any), or first element on the block
  • when the focus lock is active inside iframe
    • before: it will (endlessly) fight with focus lock that might be present in the parent frame
    • now: the parent frame always wins
      • explanation: as for parent focus inside iframe means iframe is focused, and it will prevent another element on the same page from being focused