@brightspace-ui/core 3.343.0 → 3.343.2
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.
|
@@ -394,18 +394,15 @@ export const DialogMixin = superclass => class extends superclass {
|
|
|
394
394
|
));
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
|
|
397
|
+
_handleDialogCloseWithin(e) {
|
|
398
|
+
if (!this._useNative) this._nestedShowing = false;
|
|
398
399
|
// prevent close event from bubbling and closing parent dialogs
|
|
399
400
|
e.stopPropagation();
|
|
400
401
|
}
|
|
401
402
|
|
|
402
|
-
|
|
403
|
-
this._nestedShowing =
|
|
404
|
-
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
_handleDialogOpenWithinNonNative(e) {
|
|
408
|
-
this._nestedShowing = true;
|
|
403
|
+
_handleDialogOpenWithin(e) {
|
|
404
|
+
if (!this._useNative) this._nestedShowing = true;
|
|
405
|
+
// prevent open event from bubbling and running load logic in ancestors
|
|
409
406
|
e.stopPropagation();
|
|
410
407
|
}
|
|
411
408
|
|
|
@@ -566,7 +563,8 @@ export const DialogMixin = superclass => class extends superclass {
|
|
|
566
563
|
class="${classMap(dialogOuterClasses)}"
|
|
567
564
|
@click="${this._handleClick}"
|
|
568
565
|
@close="${this._handleClose}"
|
|
569
|
-
@d2l-dialog-close="${this.
|
|
566
|
+
@d2l-dialog-close="${this._handleDialogCloseWithin}"
|
|
567
|
+
@d2l-dialog-open="${this._handleDialogOpenWithin}"
|
|
570
568
|
@d2l-fullscreen-within="${this._handleFullscreenWithin}"
|
|
571
569
|
id="${this._dialogId}"
|
|
572
570
|
@keydown="${this._handleKeyDown}"
|
|
@@ -579,8 +577,8 @@ export const DialogMixin = superclass => class extends superclass {
|
|
|
579
577
|
aria-labelledby="${info.labelId}"
|
|
580
578
|
class="${classMap(dialogOuterClasses)}"
|
|
581
579
|
@click="${this._handleClick}"
|
|
582
|
-
@d2l-dialog-close="${this.
|
|
583
|
-
@d2l-dialog-open="${this.
|
|
580
|
+
@d2l-dialog-close="${this._handleDialogCloseWithin}"
|
|
581
|
+
@d2l-dialog-open="${this._handleDialogOpenWithin}"
|
|
584
582
|
@d2l-fullscreen-within="${this._handleFullscreenWithin}"
|
|
585
583
|
id="${this._dialogId}"
|
|
586
584
|
role="${info.role}"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.343.
|
|
3
|
+
"version": "3.343.2",
|
|
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",
|