@brightspace-ui/core 3.287.0 → 3.287.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.
@@ -394,8 +394,11 @@ export const DropdownPopoverMixin = superclass => class extends LocalizeCoreElem
394
394
  }
395
395
 
396
396
  #toggleScrollStyles() {
397
- this._blockEndScroll = this.#contentElement.scrollHeight - (this.#contentElement.scrollTop + this.#contentElement.clientHeight) >= 5;
398
- this._blockStartScroll = this.#contentElement.scrollTop !== 0;
397
+ // scrollHeight can sometimes not be updated right away
398
+ requestAnimationFrame(() => {
399
+ this._blockEndScroll = this.#contentElement.scrollHeight - (this.#contentElement.scrollTop + this.#contentElement.clientHeight) >= 5;
400
+ this._blockStartScroll = this.#contentElement.scrollTop !== 0;
401
+ });
399
402
  }
400
403
 
401
404
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.287.0",
3
+ "version": "3.287.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",