@brightspace-ui/core 2.28.1 → 2.28.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.
- package/components/filter/filter.js +10 -5
- package/package.json +1 -1
|
@@ -550,11 +550,7 @@ class Filter extends FocusMixin(LocalizeCoreElement(RtlMixin(LitElement))) {
|
|
|
550
550
|
if (shouldRecount) this._setFilterCounts(dimension);
|
|
551
551
|
if (shouldUpdate) this.requestUpdate();
|
|
552
552
|
if (shouldResizeDropdown) {
|
|
553
|
-
|
|
554
|
-
if (singleDimension && this.opened) {
|
|
555
|
-
const dropdown = this.shadowRoot.querySelector('d2l-dropdown-content');
|
|
556
|
-
dropdown.requestRepositionNextResize(this.shadowRoot.querySelector('.d2l-filter-container'));
|
|
557
|
-
}
|
|
553
|
+
this._requestDropdownResize();
|
|
558
554
|
}
|
|
559
555
|
}
|
|
560
556
|
|
|
@@ -717,9 +713,18 @@ class Filter extends FocusMixin(LocalizeCoreElement(RtlMixin(LitElement))) {
|
|
|
717
713
|
break;
|
|
718
714
|
}
|
|
719
715
|
|
|
716
|
+
this._requestDropdownResize();
|
|
720
717
|
this.requestUpdate();
|
|
721
718
|
}
|
|
722
719
|
|
|
720
|
+
_requestDropdownResize() {
|
|
721
|
+
const singleDimension = this._dimensions.length === 1;
|
|
722
|
+
if (singleDimension && this.opened) {
|
|
723
|
+
const dropdown = this.shadowRoot.querySelector('d2l-dropdown-content');
|
|
724
|
+
dropdown.requestRepositionNextResize(this.shadowRoot.querySelector('.d2l-filter-container'));
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
|
|
723
728
|
_setDimensionChangeEvent(dimension, change, dimensionCleared) {
|
|
724
729
|
if (!this._changeEventsToDispatch.has(dimension.key)) {
|
|
725
730
|
this._changeEventsToDispatch.set(dimension.key, { dimensionKey: dimension.key, cleared: false, changes: new Map() });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.28.
|
|
3
|
+
"version": "2.28.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",
|