@brightspace-ui/core 3.342.0 → 3.342.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.
@@ -400,6 +400,9 @@ class AlertToast extends LitElement {
400
400
  }
401
401
 
402
402
  _onStateClosed() {
403
+ if (usePopover()) {
404
+ this.shadowRoot.querySelector('[popover="manual"]')?.hidePopover();
405
+ }
403
406
  this._state = states.CLOSED;
404
407
  this._totalSiblingHeightBelow = 0;
405
408
  this._numAlertsBelow = 0;
@@ -442,10 +445,6 @@ class AlertToast extends LitElement {
442
445
  } else {
443
446
  if (!this._innerContainer) return;
444
447
 
445
- if (usePopover()) {
446
- this.shadowRoot.querySelector('[popover="manual"]')?.hidePopover();
447
- }
448
-
449
448
  if (activeReduceMotion || this._state === states.PREOPENING) {
450
449
  cancelAnimationFrame(this._preopenFrame);
451
450
  } else if (this._state === states.OPENING || this._state === states.OPEN || this._state === states.SLIDING) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.342.0",
3
+ "version": "3.342.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",