@brightspace-ui/core 3.332.0 → 3.332.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.
|
@@ -104,9 +104,7 @@ export const DialogMixin = superclass => class extends superclass {
|
|
|
104
104
|
window.removeEventListener('d2l-mvc-dialog-open', this.#handleMvcDialogOpen);
|
|
105
105
|
|
|
106
106
|
// If the dialog is disconnected before the close animation finishes
|
|
107
|
-
|
|
108
|
-
this._handleClose();
|
|
109
|
-
}
|
|
107
|
+
this._handleClose();
|
|
110
108
|
}
|
|
111
109
|
|
|
112
110
|
async updated(changedProperties) {
|
|
@@ -376,6 +374,8 @@ export const DialogMixin = superclass => class extends superclass {
|
|
|
376
374
|
}
|
|
377
375
|
|
|
378
376
|
_handleClose() {
|
|
377
|
+
if (this.#closeHandled) return;
|
|
378
|
+
this.#closeHandled = true;
|
|
379
379
|
/* reset state if native dialog closes unexpectedly. ex. user highlights
|
|
380
380
|
text and then hits escape key - this is not caught by our key handler */
|
|
381
381
|
this._removeHandlers();
|
|
@@ -392,7 +392,6 @@ export const DialogMixin = superclass => class extends superclass {
|
|
|
392
392
|
detail: { action: this._action }
|
|
393
393
|
}
|
|
394
394
|
));
|
|
395
|
-
this.#closeHandled = true;
|
|
396
395
|
}
|
|
397
396
|
|
|
398
397
|
_handleDialogCloseWithinNative(e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.332.
|
|
3
|
+
"version": "3.332.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",
|