Skip to content

Releases: pdanpdan/vue-keyboard-trap

1.2.0

21 Sep 17:15
Compare
Choose a tag to compare
  • 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

1.1.0

18 Sep 20:00
Compare
Choose a tag to compare
  • feat: add usage as composable (useKeyboardTrap)
  • chore: start using vue-demi for Vue2/3 compat

1.0.23

17 Sep 21:31
Compare
Choose a tag to compare
  • feat: refocus relatedFocusTarget on unbind

1.0.21

17 Sep 20:51
Compare
Choose a tag to compare
  • fix: exported TS types

1.0.20

17 Sep 18:47
Compare
Choose a tag to compare
  • feat: disable trap with SHIFT+ESC
  • feat: improve refocusing for nested roving traps
  • feat: treat popovers like dialogs for focusing purposes
  • feat: improve hint styles
    • only show them on kbd interaction
    • mark parent trap actions for nested roving traps with orthogonal directions

1.0.19

28 Sep 09:15
Compare
Choose a tag to compare

fix: do not set tabindex for dialog element

1.0.18

26 Sep 16:05
Compare
Choose a tag to compare

fix: activate trap if it's enabled when focus is inside #6