Skip to content

Commit 225484b

Browse files
castastropheheyMP
andauthored
fix: Fix content set ID copy to shadow dom (#1653)
* fix: Fix content set ID copy to shadow dom * chore: spell check fix Co-authored-by: Michael Potter <[email protected]>
1 parent 03908be commit 225484b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG-1.x.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.9.2 (2021-05-27)
2+
3+
- [](https://github.com/patternfly/patternfly-elements/commit/) fix: pfe-content-set, bring back ID copy from parent to nested item
4+
15
# 1.9.1 (2021-05-27)
26

37
- [21bee7a](https://github.com/patternfly/patternfly-elements/commit/21bee7afb03d9736870ec597f4b29ceb18862276) fix: pfe-content-set, Safari 14.1.1 / WebKitGTK 2.32.0 bug fix (IE11 update: only renders as accordion)

elements/pfe-content-set/src/pfe-content-set.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ class PfeContentSet extends PFElement {
467467
Promise.all([customElements.whenDefined(this.expectedTag)]).then(() => {
468468
const template = this.expectedTag === "pfe-tabs" ? PfeTabs.contentTemplate : PfeAccordion.contentTemplate;
469469
const sets = this._buildSets(addedNodes, template);
470+
sets.id = this.id || this.randomId;
471+
470472
const container = this.shadowRoot.querySelector("#container");
471473

472474
if (sets && container) {

0 commit comments

Comments
 (0)