Releases: focus-trap/tabbable
Releases · focus-trap/tabbable
v5.3.0
Minor Changes
- 685a906: Adds new Shadow DOM support (must be explicitly enabled using the new
getShadowRootoption).- When enabled, supports open shadows by default, and can support closed shadows if the option is a function that returns the shadow for a given node. See documentation for more information.
- Includes all updates from
5.3.0-beta.0and5.3.0-beta.1releases.
Patch Changes
- b341412: Made "isDisabledFromFieldset" more readable and concise (even marginally faster).
- 685a906: Fixed a bug in
getTabIndex: the tab index of<audio>,<video>and<details>was left to the browser default if explicitly set to a value that couldn't be parsed as integer, leading to inconsistent behavior across browsers. Also slightly modified the function's logic to make it more efficient. Finally added tests to cover the fix. - dd6d0ec: Optimized and extended
displayCheck: "full"option (now checks for any element having no display boxes) and added test fordisplay: "contents"property (this bug was never reported). (#592) - 193fca2: Fixed bug in
isDisabledFromFieldset. The function wasn't checking whether the disabled<fieldset>containingnodeis the top-most disabled<fieldset>(#596).
v5.2.1
v5.2.0
v5.1.6
v5.1.5
v5.1.4
v5.1.3
v5.1.2
v5.1.1
v5.1.0
Minor Changes
- bd21d91: Add
focusable()for getting all focusable nodes.
Patch Changes
- 3665d0b: The TypeScript return type of
tabbablehas been fixed: WasArray<Element>(anElementis technically not focusable), is nowArray<HTMLElement | SVGElement>(which are both still/alsoElementinstances). - 8a25135: Fixed: Tabbable elements in fixed-position (
position: fixed) containers should now be consistently found in supported browsers. - 9544de2: Replace
prepublishOnlyscript withpreparescript. This has the added benefit of running automatically when installing the package from GitHub (as supported by NPM) where the published./distdirectory is not automatically included. - 672f4a2: Add
focusable()type definition. - 2424c0f: Small improvements for improving tree-shakeability of this package. A missing
#__PURE__annotation has been added to allow dropping one of the top-level calls (if its result stays unused) and removed minification of the file referenced aspackage.json#moduleto avoid dropping the comments (including existing#__PURE__annotations).