Skip to content

Commit

Permalink
Handle disabled change
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnef committed Oct 5, 2023
1 parent 2a5e7dd commit 54381c0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class UUIResizeObserverElement extends LitElement {
static styles = [
css`
:host {
/* Styles goes here */
display: contents;
}
`,
];
Expand Down Expand Up @@ -67,6 +67,10 @@ export class UUIResizeObserverElement extends LitElement {
this._resizeObserver.disconnect();
}

firstUpdated() {
this.handleDisabledChange();
}

handleDisabledChange() {
if (this.disabled) {
this.stopObserver();
Expand Down

0 comments on commit 54381c0

Please sign in to comment.