@brightspace-ui/core 2.139.2 → 2.139.4
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
|
|
|
@@ -373,7 +373,7 @@ class InputNumber extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixi
|
|
|
373
373
|
`;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
updated(changedProperties) {
|
|
376
|
+
async updated(changedProperties) {
|
|
377
377
|
super.updated(changedProperties);
|
|
378
378
|
|
|
379
379
|
let checkValidity = false;
|
|
@@ -390,6 +390,9 @@ class InputNumber extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixi
|
|
|
390
390
|
});
|
|
391
391
|
|
|
392
392
|
if (checkValidity) {
|
|
393
|
+
const inputTextElem = this.shadowRoot.querySelector('d2l-input-text');
|
|
394
|
+
await inputTextElem.updateComplete;
|
|
395
|
+
|
|
393
396
|
let rangeUnderflowCondition = false;
|
|
394
397
|
if (typeof(this.min) === 'number') {
|
|
395
398
|
rangeUnderflowCondition = this.minExclusive ? this.value <= this.min : this.value < this.min;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.139.
|
|
3
|
+
"version": "2.139.4",
|
|
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",
|