Skip to content

1.2.0

Latest
Compare
Choose a tag to compare
@pdanpdan pdanpdan released this 21 Sep 17:15
· 167 commits to main since this release
  • feat: make sure the relatedFocusTarget is set when activating a trap
  • fix: do not sort the list of focusable elements when exiting a trap to make sure the focus will go outside the trap
  • feat: don't execute focus and refocus in animation frame
  • feat: make sure trap is activated when autofocusing
  • feat: bind directive on mount (instead of beforeMount)
    • allow elements in the trap to be mounted in DOM when first processed
  • feat: improve check if focus was successful
    • account for focus target change on focus
    • account for focus placeholder for editable elements
  • feat: make visibleFocusCheckFn more permissive
    • check all sides if they are visible
    • always allow children of dialog