Skip to content

Commit

Permalink
fix issue with unobserved attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
deebloo committed Jan 13, 2025
1 parent 5bcc07b commit 2b016fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/element/src/lib/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ export function element<T extends ElementConstructor>(opts?: ElementOpts) {
}
}

if (super.attributeChangedCallback) {
super.attributeChangedCallback(name, oldValue, newValue);
if (attr.observe) {
if (super.attributeChangedCallback) {
super.attributeChangedCallback(name, oldValue, newValue);
}
}
}
}
Expand Down

0 comments on commit 2b016fe

Please sign in to comment.