focus-lock
Advanced tools
Comparing version 0.11.1 to 0.11.2
@@ -0,1 +1,20 @@ | ||
## [0.11.2](https://github.com/theKashey/focus-lock/compare/v0.11.1...v0.11.2) (2022-05-07) | ||
### Bug Fixes | ||
- use prototype-based node.contains, fixes [#36](https://github.com/theKashey/focus-lock/issues/36) ([c7eb950](https://github.com/theKashey/focus-lock/commit/c7eb9500adcb37ff2cac8a84b440fc59804d5874)) | ||
## [0.11.1](https://github.com/theKashey/focus-lock/compare/v0.11.0...v0.11.1) (2022-05-04) | ||
# [0.11.0](https://github.com/theKashey/focus-lock/compare/v0.10.2...v0.11.0) (2022-05-01) | ||
### Bug Fixes | ||
- no longer block aria-disabled elements, fixes [#34](https://github.com/theKashey/focus-lock/issues/34) ([2bc8ee3](https://github.com/theKashey/focus-lock/commit/2bc8ee3a58f5c51b6a44df24b4bd443c01977737)) | ||
- restore built-in jsdoc ([edc8a82](https://github.com/theKashey/focus-lock/commit/edc8a82b1fe1e0a349ff60ebb599f63dbc2aa599)) | ||
### Features | ||
- introduce FOCUS_NO_AUTOFOCUS ([5c2dc8f](https://github.com/theKashey/focus-lock/commit/5c2dc8fb371ee83400ae65c7f0923b19eaf99d05)) | ||
## [0.10.2](https://github.com/theKashey/focus-lock/compare/v0.10.1...v0.10.2) (2022-02-14) | ||
@@ -2,0 +21,0 @@ |
@@ -47,3 +47,4 @@ import { toArray } from './array'; | ||
? contains(scope.shadowRoot, element) | ||
: scope.contains(element)) || toArray(scope.children).some(function (child) { return contains(child, element); })); | ||
: Object.getPrototypeOf(scope).contains.call(scope, element)) || | ||
toArray(scope.children).some(function (child) { return contains(child, element); })); | ||
}; |
@@ -36,3 +36,4 @@ import { toArray } from './array'; | ||
? contains(scope.shadowRoot, element) | ||
: scope.contains(element)) || toArray(scope.children).some((child) => contains(child, element))); | ||
: Object.getPrototypeOf(scope).contains.call(scope, element)) || | ||
toArray(scope.children).some((child) => contains(child, element))); | ||
}; |
@@ -55,4 +55,5 @@ "use strict"; | ||
? (0, exports.contains)(scope.shadowRoot, element) | ||
: scope.contains(element)) || (0, array_1.toArray)(scope.children).some(function (child) { return (0, exports.contains)(child, element); })); | ||
: Object.getPrototypeOf(scope).contains.call(scope, element)) || | ||
(0, array_1.toArray)(scope.children).some(function (child) { return (0, exports.contains)(child, element); })); | ||
}; | ||
exports.contains = contains; |
{ | ||
"name": "focus-lock", | ||
"version": "0.11.1", | ||
"version": "0.11.2", | ||
"description": "DOM trap for a focus", | ||
@@ -5,0 +5,0 @@ "main": "dist/es5/index.js", |
127456
2878