Skip to content

Commit

Permalink
Bug 1842547 - ensure treecol label, crop and other attributes actuall…
Browse files Browse the repository at this point in the history
…y inherit correctly, a=diannaS

Original Revision: https://phabricator.services.mozilla.com/D183207

Differential Revision: https://phabricator.services.mozilla.com/D183307
  • Loading branch information
gijsk committed Jul 13, 2023
1 parent 8cabdbd commit 3628c5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions toolkit/content/widgets/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@

class MozTreecol extends MozElements.BaseControl {
static get observedAttributes() {
return ["primary"];
return ["primary", ...super.observedAttributes];
}

static get inheritedAttributes() {
Expand Down Expand Up @@ -411,7 +411,8 @@
this._resizeObserver = null;
}

attributeChangedCallback() {
attributeChangedCallback(name, oldValue, newValue) {
super.attributeChangedCallback(name, oldValue, newValue);
this._invalidate();
}

Expand Down

0 comments on commit 3628c5a

Please sign in to comment.