diff --git a/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.ts b/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.ts index d46f9228..5cc04187 100644 --- a/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.ts +++ b/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.ts @@ -520,7 +520,8 @@ const patchAttributes = ( if (observedAttributes.has(name)) { const old = this.getAttribute(name); setAttribute.call(this, name, value); - attributeChangedCallback.call(this, name, old, value); + const newValue = this.getAttribute(name); + attributeChangedCallback.call(this, name, old, newValue); } else { setAttribute.call(this, name, value); }