@brightspace-ui/core 2.139.2 → 2.139.3
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.
|
@@ -292,7 +292,7 @@ export const DropdownContentMixin = superclass => class extends LocalizeCoreElem
|
|
|
292
292
|
this.addEventListener('blur', this.__onAutoCloseFocus, true);
|
|
293
293
|
this.addEventListener('touchstart', this.__onTouchStart);
|
|
294
294
|
document.body.addEventListener('focus', this.__onAutoCloseFocus, true);
|
|
295
|
-
document.
|
|
295
|
+
document.addEventListener('click', this.__onAutoCloseClick, true);
|
|
296
296
|
this.mediaQueryList = window.matchMedia(`(max-width: ${this.mobileBreakpointOverride - 1}px)`);
|
|
297
297
|
this._useMobileStyling = this.mediaQueryList.matches;
|
|
298
298
|
if (this.mediaQueryList.addEventListener) this.mediaQueryList.addEventListener('change', this._handleMobileResize);
|
|
@@ -304,11 +304,8 @@ export const DropdownContentMixin = superclass => class extends LocalizeCoreElem
|
|
|
304
304
|
this.removeEventListener('blur', this.__onAutoCloseFocus);
|
|
305
305
|
this.removeEventListener('touchstart', this.__onTouchStart);
|
|
306
306
|
window.removeEventListener('resize', this.__onResize);
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
document.body.removeEventListener('focus', this.__onAutoCloseFocus, true);
|
|
310
|
-
document.body.removeEventListener('click', this.__onAutoCloseClick, true);
|
|
311
|
-
}
|
|
307
|
+
document.body?.removeEventListener('focus', this.__onAutoCloseFocus, true); // DE41322: document.body can be null in some scenarios
|
|
308
|
+
document.removeEventListener('click', this.__onAutoCloseClick, true);
|
|
312
309
|
clearDismissible(this.__dismissibleId);
|
|
313
310
|
this.__dismissibleId = null;
|
|
314
311
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.139.
|
|
3
|
+
"version": "2.139.3",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|