Skip to content

Commit

Permalink
fix initial disabled state
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Oct 7, 2021
1 parent bf9e06e commit ccec9a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/mutation-observer/mutation-observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export default class SlMutationObserver extends LitElement {
this.handleMutation = this.handleMutation.bind(this);

this.mutationObserver = new MutationObserver(this.handleMutation);
this.startObserver();

if (!this.disabled) {
this.startObserver();
}
}

disconnectedCallback() {
Expand Down

0 comments on commit ccec9a8

Please sign in to comment.