diff --git a/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.js b/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.js index bbed0154..861a7e13 100644 --- a/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.js +++ b/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.js @@ -354,7 +354,10 @@ if (!ShadowRoot.prototype.createElement) { const old = this.getAttribute(name); toggleAttribute.call(this, name, force); const newValue = this.getAttribute(name); - attributeChangedCallback.call(this, name, old, newValue); + + if (old !== newValue) { + attributeChangedCallback.call(this, name, old, newValue); + } } else { toggleAttribute.call(this, name, force); }