@angular/cdk 11.2.12 → 11.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/cdk-a11y.umd.js +6 -1
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +5 -5
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +14 -12
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.min.js +4 -4
- package/bundles/cdk-overlay.umd.min.js.map +1 -1
- package/bundles/cdk-testing.umd.js +41 -4
- package/bundles/cdk-testing.umd.js.map +1 -1
- package/bundles/cdk-testing.umd.min.js +4 -4
- package/bundles/cdk-testing.umd.min.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/bundles/cdk.umd.min.js +1 -1
- package/bundles/cdk.umd.min.js.map +1 -1
- package/esm2015/a11y/focus-trap/focus-trap.js +7 -2
- package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +15 -13
- package/esm2015/testing/component-harness.js +42 -4
- package/esm2015/version.js +1 -1
- package/fesm2015/a11y.js +6 -1
- package/fesm2015/a11y.js.map +1 -1
- package/fesm2015/cdk.js +1 -1
- package/fesm2015/cdk.js.map +1 -1
- package/fesm2015/overlay.js +14 -12
- package/fesm2015/overlay.js.map +1 -1
- package/fesm2015/testing.js +41 -3
- package/fesm2015/testing.js.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
package/bundles/cdk-a11y.umd.js
CHANGED
|
@@ -1557,7 +1557,12 @@
|
|
|
1557
1557
|
}
|
|
1558
1558
|
};
|
|
1559
1559
|
CdkTrapFocus.prototype._captureFocus = function () {
|
|
1560
|
-
|
|
1560
|
+
var _a, _b;
|
|
1561
|
+
// If the `activeElement` is inside a shadow root, `document.activeElement` will
|
|
1562
|
+
// point to the shadow root so we have to descend into it ourselves.
|
|
1563
|
+
var activeElement = (_a = this._document) === null || _a === void 0 ? void 0 : _a.activeElement;
|
|
1564
|
+
this._previouslyFocusedElement =
|
|
1565
|
+
((_b = activeElement === null || activeElement === void 0 ? void 0 : activeElement.shadowRoot) === null || _b === void 0 ? void 0 : _b.activeElement) || activeElement;
|
|
1561
1566
|
this.focusTrap.focusInitialElementWhenReady();
|
|
1562
1567
|
};
|
|
1563
1568
|
return CdkTrapFocus;
|