@brightspace-ui/core 3.227.13 → 3.227.14

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.
@@ -1,10 +1,10 @@
1
1
  import '../button/button-subtle.js';
2
2
  import { css, html, LitElement } from 'lit';
3
+ import { isComposedAncestor, isVisible } from '../../helpers/dom.js';
3
4
  import { classMap } from 'lit/directives/class-map.js';
4
5
  import { getComposedActiveElement } from '../../helpers/focus.js';
5
6
  import { getUniqueId } from '../../helpers/uniqueId.js';
6
7
  import { ifDefined } from 'lit/directives/if-defined.js';
7
- import { isComposedAncestor } from '../../helpers/dom.js';
8
8
  import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
9
9
  import { overflowHiddenDeclarations } from '../../helpers/overflow.js';
10
10
  import { styleMap } from 'lit/directives/style-map.js';
@@ -271,6 +271,7 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
271
271
  }
272
272
 
273
273
  __reactToChanges() {
274
+ if (!isVisible(this) && this.__baseHeight > 0) return;
274
275
  this.__transitionAdded = true;
275
276
  this.__adjustToContent();
276
277
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.227.13",
3
+ "version": "3.227.14",
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",