Minor Changes
- 2a57e4b: Add new
trap.active
andtrap.paused
readonly state properties on the trap so that the trap's active/paused state can be queried.
Patch Changes
- 8fd49df: Fixed bug where
clickOutsideDeactivate
handler would get called on the 'click' event even if the node clicked was in the trap. As with 'mousedown' and 'touchstart' events where this option is also used, the handler should only get called if the target node is outside the trap. - c32c60a: Fixed: onDeactivate, onPostDeactivate, and checkCanReturnFocus options originally given to createFocusTrap() were not being used by default when calling
trap.deactivate({...})
with an option set even if that option set didn't specify any overrides of these options.