@brightspace-ui/core 3.326.0 → 3.326.1
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.
|
@@ -393,12 +393,17 @@ export const DialogMixin = superclass => class extends superclass {
|
|
|
393
393
|
));
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
|
|
396
|
+
_handleDialogCloseWithinNative(e) {
|
|
397
|
+
// prevent close event from bubbling and closing parent dialogs
|
|
398
|
+
e.stopPropagation();
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
_handleDialogCloseWithinNonNative(e) {
|
|
397
402
|
this._nestedShowing = false;
|
|
398
403
|
e.stopPropagation();
|
|
399
404
|
}
|
|
400
405
|
|
|
401
|
-
|
|
406
|
+
_handleDialogOpenWithinNonNative(e) {
|
|
402
407
|
this._nestedShowing = true;
|
|
403
408
|
e.stopPropagation();
|
|
404
409
|
}
|
|
@@ -559,6 +564,7 @@ export const DialogMixin = superclass => class extends superclass {
|
|
|
559
564
|
class="${classMap(dialogOuterClasses)}"
|
|
560
565
|
@click="${this._handleClick}"
|
|
561
566
|
@close="${this._handleClose}"
|
|
567
|
+
@d2l-dialog-close="${this._handleDialogCloseWithinNative}"
|
|
562
568
|
@d2l-fullscreen-within="${this._handleFullscreenWithin}"
|
|
563
569
|
id="${this._dialogId}"
|
|
564
570
|
@keydown="${this._handleKeyDown}"
|
|
@@ -571,8 +577,8 @@ export const DialogMixin = superclass => class extends superclass {
|
|
|
571
577
|
aria-labelledby="${info.labelId}"
|
|
572
578
|
class="${classMap(dialogOuterClasses)}"
|
|
573
579
|
@click="${this._handleClick}"
|
|
574
|
-
@d2l-dialog-close="${this.
|
|
575
|
-
@d2l-dialog-open="${this.
|
|
580
|
+
@d2l-dialog-close="${this._handleDialogCloseWithinNonNative}"
|
|
581
|
+
@d2l-dialog-open="${this._handleDialogOpenWithinNonNative}"
|
|
576
582
|
@d2l-fullscreen-within="${this._handleFullscreenWithin}"
|
|
577
583
|
id="${this._dialogId}"
|
|
578
584
|
role="${info.role}"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.326.
|
|
3
|
+
"version": "3.326.1",
|
|
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",
|