@brightspace-ui/core 2.79.1 → 2.79.2
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.
|
@@ -452,6 +452,8 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
|
|
|
452
452
|
case keyCodes.SPACE:
|
|
453
453
|
node = getComposedActiveElement();
|
|
454
454
|
node.click();
|
|
455
|
+
// mouseup event is necessary for components like d2l-dropdown-more that control state by listening to this event
|
|
456
|
+
node.dispatchEvent(new MouseEvent('mouseup', { composed: true }));
|
|
455
457
|
break;
|
|
456
458
|
case keyCodes.RIGHT:
|
|
457
459
|
node = getComposedActiveElement();
|
package/custom-elements.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.79.
|
|
3
|
+
"version": "2.79.2",
|
|
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",
|
|
@@ -334,6 +334,7 @@ class MobileMouseResizer extends Resizer {
|
|
|
334
334
|
|
|
335
335
|
constructor() {
|
|
336
336
|
super();
|
|
337
|
+
this._isDragging = false;
|
|
337
338
|
this._onMouseDown = this._onMouseDown.bind(this);
|
|
338
339
|
this._onMouseMove = this._onMouseMove.bind(this);
|
|
339
340
|
this._onMouseUp = this._onMouseUp.bind(this);
|
|
@@ -363,6 +364,7 @@ class MobileMouseResizer extends Resizer {
|
|
|
363
364
|
e.preventDefault();
|
|
364
365
|
const y = e.clientY - this.contentRect.top;
|
|
365
366
|
this._offset = y - (this.contentRect.height - this.panelSize);
|
|
367
|
+
this._isDragging = false;
|
|
366
368
|
this._isResizing = true;
|
|
367
369
|
this._target.focus();
|
|
368
370
|
}
|
|
@@ -374,6 +376,7 @@ class MobileMouseResizer extends Resizer {
|
|
|
374
376
|
}
|
|
375
377
|
const y = e.clientY - this.contentRect.top;
|
|
376
378
|
const secondaryHeight = this.clampMaxHeight(this.contentRect.height - y + this._offset);
|
|
379
|
+
this._isDragging = true;
|
|
377
380
|
this.dispatchResize(secondaryHeight, false);
|
|
378
381
|
}
|
|
379
382
|
|
|
@@ -386,12 +389,13 @@ class MobileMouseResizer extends Resizer {
|
|
|
386
389
|
const y = e.clientY - this.contentRect.top;
|
|
387
390
|
const desiredSecondaryHeight = this.contentRect.height - y + this._offset;
|
|
388
391
|
if (
|
|
389
|
-
|
|
390
|
-
|
|
392
|
+
this._isDragging
|
|
393
|
+
&& ((this._wasCollapsed && desiredSecondaryHeight < collapsedCollapseThreshold)
|
|
394
|
+
|| (!this._wasCollapsed && desiredSecondaryHeight < expandedCollapseThreshold))
|
|
391
395
|
) {
|
|
392
|
-
if (desiredSecondaryHeight
|
|
396
|
+
if (desiredSecondaryHeight !== 0) this.dispatchResize(0, true);
|
|
393
397
|
}
|
|
394
|
-
else if (desiredSecondaryHeight < this.contentBounds.minHeight) {
|
|
398
|
+
else if (this._isDragging && desiredSecondaryHeight < this.contentBounds.minHeight) {
|
|
395
399
|
this.dispatchResize(this.contentBounds.minHeight, true);
|
|
396
400
|
}
|
|
397
401
|
this._isResizing = false;
|