@brightspace-ui/core 3.275.0 → 3.276.0

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.
@@ -4,14 +4,11 @@ import '../backdrop/backdrop-loading.js';
4
4
  import { css, html, LitElement, nothing } from 'lit';
5
5
  import { cssSizes } from '../inputs/input-checkbox-styles.js';
6
6
  import { getComposedParent } from '../../helpers/dom.js';
7
- import { getFlag } from '../../helpers/flags.js';
8
7
  import { isPopoverSupported } from '../popover/popover-mixin.js';
9
8
  import { PageableMixin } from '../paging/pageable-mixin.js';
10
9
  import { PropertyRequiredMixin } from '../../mixins/property-required/property-required-mixin.js';
11
10
  import { SelectionMixin } from '../selection/selection-mixin.js';
12
11
 
13
- const enableStickyScrollyFix = getFlag('table-sticky-scrolly-fix', true);
14
-
15
12
  export const tableStyles = css`
16
13
  .d2l-table {
17
14
  border-collapse: separate; /* needed to override reset stylesheets */
@@ -682,20 +679,12 @@ export class TableWrapper extends PropertyRequiredMixin(PageableMixin(SelectionM
682
679
  const head = this._table.querySelector('thead');
683
680
  const body = this._table.querySelector('tbody');
684
681
 
685
- if (enableStickyScrollyFix) {
686
- clearTimeout(this.#noScrollWidthTimeout);
687
- this.#noScrollWidthTimeout = setTimeout(() => {
688
- const maxScrollWidth = Math.max(head?.scrollWidth, body?.scrollWidth);
689
- this._noScrollWidth = (maxScrollWidth <= this.clientWidth);
690
- });
691
- if (!head || !body || !this.stickyHeaders || !this.stickyHeadersScrollWrapper || this._noScrollWidth || !this.#hasIntersected) return;
692
- } else {
682
+ clearTimeout(this.#noScrollWidthTimeout);
683
+ this.#noScrollWidthTimeout = setTimeout(() => {
693
684
  const maxScrollWidth = Math.max(head?.scrollWidth, body?.scrollWidth);
694
- setTimeout(() => {
695
- this._noScrollWidth = this.clientWidth === maxScrollWidth;
696
- });
697
- if (!head || !body || !this._table || !this.stickyHeaders || !this.stickyHeadersScrollWrapper || this._noScrollWidth) return;
698
- }
685
+ this._noScrollWidth = (maxScrollWidth <= this.clientWidth);
686
+ });
687
+ if (!head || !body || !this.stickyHeaders || !this.stickyHeadersScrollWrapper || this._noScrollWidth || !this.#hasIntersected) return;
699
688
 
700
689
  const candidateRowHeadCells = [];
701
690
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.275.0",
3
+ "version": "3.276.0",
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",