@brightspace-ui/core 3.304.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
|
-
|
|
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)
|
|
241
|
-
|
|
242
|
-
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.304.
|
|
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",
|