diff --git a/src/diff/props.js b/src/diff/props.js index 316146f0fd..7ca7b83cbe 100644 --- a/src/diff/props.js +++ b/src/diff/props.js @@ -117,6 +117,11 @@ export function setProperty(dom, name, value, oldValue, namespace) { name != 'colSpan' && name != 'role' && name != 'popover' && + // observedAttributes can exist as a static property on custom elements + // a runtime check here has no tangible benefit apart from satisfying typescript + // which runs later in the toolchain + // @ts-ignore + !dom.constructor.observedAttributes?.includes(name) && name in dom ) { try {