@brightspace-ui/core 3.286.1 → 3.286.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.
|
@@ -186,9 +186,17 @@ export const DropdownPopoverMixin = superclass => class extends LocalizeCoreElem
|
|
|
186
186
|
this._hasHeaderSlotContent = false;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
+
disconnectedCallback() {
|
|
190
|
+
super.disconnectedCallback();
|
|
191
|
+
this.#resizeObserver.disconnect();
|
|
192
|
+
}
|
|
193
|
+
|
|
189
194
|
firstUpdated(changedProperties) {
|
|
190
195
|
super.firstUpdated(changedProperties);
|
|
191
196
|
this.#contentElement = this.shadowRoot?.querySelector('.dropdown-content');
|
|
197
|
+
if (this.#contentElement) {
|
|
198
|
+
this.#resizeObserver.observe(this.#contentElement);
|
|
199
|
+
}
|
|
192
200
|
this.addEventListener('d2l-popover-open', this.#handlePopoverOpen);
|
|
193
201
|
this.addEventListener('d2l-popover-close', this.#handlePopoverClose);
|
|
194
202
|
this.addEventListener('d2l-popover-position', this.#handlePopoverPosition);
|
|
@@ -291,6 +299,9 @@ export const DropdownPopoverMixin = superclass => class extends LocalizeCoreElem
|
|
|
291
299
|
}
|
|
292
300
|
|
|
293
301
|
#contentElement;
|
|
302
|
+
#resizeObserver = new ResizeObserver(() => {
|
|
303
|
+
this.#toggleScrollStyles();
|
|
304
|
+
});
|
|
294
305
|
|
|
295
306
|
#adaptMobileTrayLocation(val) {
|
|
296
307
|
switch (val) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.286.
|
|
3
|
+
"version": "3.286.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",
|