Repository URL to install this package:
|
Version:
3.1.7 ▾
|
setReturnFocus option that allows you to set which element receives focus when the trap closes.allowOutsideClick option that allows you to pass a click event through, even when clickOutsideDeactivates is false.onActivate callback changes the list of tabbable nodes and the initialFocus option is not used, the initial focus will still go to the first element present before the callback.passive: false).(Release 4.0.1 was a mistake, containing no changes.)
clickOutsideDeactivates and returnFocusOnDeactivate are both true, focus will be returned to the pre-trap element only if the clicked element is not focusable."main" field in package.json.unpkg.com.activate function.tabindex and is in the middle of other tabbable elements.initialFocus and fallbackFocus options can take functions that return DOM nodes.pause and unpause cannot accidentally add extra event listeners.initialFocus.fallbackFocus option.clickOutsideDeactivates no longer triggers deactivation when you click inside the trap.tabbable to fix handling of traps with changing contents.clickOutsideDeactivates functionality.clickOutsideDeactivates option.escapeDeactivates option.select() <input> elements when they receive focus via tab.