@brightspace-ui/core 1.225.0 → 1.225.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.
@@ -110,11 +110,12 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
110
110
  updated(changedProperties) {
111
111
  super.updated(changedProperties);
112
112
  if (!this.openOnHover || !changedProperties.has('_isFading')) return;
113
-
113
+ const element = this.__getContentElement();
114
+ if (!element) return;
114
115
  if (this._isFading) {
115
- this.__getContentElement()?.classList.add('d2l-dropdown-content-fading');
116
+ element.classList.add('d2l-dropdown-content-fading');
116
117
  } else {
117
- this.__getContentElement()?.classList.remove('d2l-dropdown-content-fading');
118
+ element.classList.remove('d2l-dropdown-content-fading');
118
119
  }
119
120
  }
120
121
 
@@ -254,7 +255,9 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
254
255
  if (this.noAutoOpen) return;
255
256
  if (this.openOnHover) {
256
257
  // prevent propogation to window and triggering _onOutsideClick
257
- e?.stopPropagation();
258
+ if (e) {
259
+ e.stopPropagation();
260
+ }
258
261
  this._closeTimerStop();
259
262
  if (this._isOpen && !this._isHovering) {
260
263
  this.closeDropdown();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.225.0",
3
+ "version": "1.225.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",