@brightspace-ui/core 3.303.0 → 3.304.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.
@@ -226,8 +226,9 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
226
226
  }
227
227
  }
228
228
 
229
- async __onMouseEnter() {
229
+ __onMouseEnter() {
230
230
  const dropdownContent = this.__getContentElement();
231
+ if (!dropdownContent) return;
231
232
 
232
233
  // do not respond to hover events on mobile screens
233
234
  if (dropdownContent._mobile) return;
@@ -236,16 +237,24 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
236
237
 
237
238
  if (!this.openOnHover) return;
238
239
 
240
+ const afterOpen = () => {
241
+ this._closeTimerStop();
242
+ if (!this._isOpenedViaClick) this._isHovering = true;
243
+ };
244
+
239
245
  clearTimeout(this._dismissTimerId);
240
- if (!this.dropdownOpened) await this.openDropdown(false);
241
- this._closeTimerStop();
242
- if (!this._isOpenedViaClick) this._isHovering = true;
246
+ if (!this.dropdownOpened) {
247
+ this.openDropdown(false).then(afterOpen);
248
+ } else {
249
+ afterOpen();
250
+ }
243
251
  }
244
252
 
245
253
  async __onMouseLeave() {
246
254
  if (!this.openOnHover) return;
247
255
  // do not respond to hover events on mobile screens
248
256
  const dropdownContent = this.__getContentElement();
257
+ if (!dropdownContent) return;
249
258
 
250
259
  if (dropdownContent._mobile) return;
251
260
 
@@ -22,10 +22,6 @@ export const checkboxStyles = _generateInputCheckboxStyles('input[type="checkbox
22
22
  class InputCheckbox extends FormElementMixin(InputInlineHelpMixin(FocusMixin(SkeletonMixin(LitElement)))) {
23
23
 
24
24
  static properties = {
25
- /**
26
- * @ignore
27
- */
28
- ariaLabel: { type: String, attribute: 'aria-label' },
29
25
  /**
30
26
  * Checked state
31
27
  * @type {boolean}
@@ -198,15 +194,6 @@ class InputCheckbox extends FormElementMixin(InputInlineHelpMixin(FocusMixin(Ske
198
194
  }
199
195
  }
200
196
 
201
- willUpdate(changedProperties) {
202
- super.willUpdate(changedProperties);
203
- if (changedProperties.has('ariaLabel') && this.ariaLabel !== undefined) {
204
- console.error('d2l-input-checkbox: the ariaLabel property is no longer supported. Use the label property with label-hidden instead.');
205
- this.label = this.ariaLabel;
206
- this.labelHidden = true;
207
- }
208
- }
209
-
210
197
  simulateClick() {
211
198
  this.checked = !this.checked;
212
199
  this.indeterminate = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.303.0",
3
+ "version": "3.304.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",