Skip to content

Commit 1b9f61f

Browse files
fix(scoped-custom-elements-registry): return value from HTMLElement prototype methods in polyfill
1 parent a75b94e commit 1b9f61f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/scoped-custom-element-registry/src/scoped-custom-element-registry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ if (!ShadowRoot.prototype.createElement) {
486486
const host = internalsToHostMap.get(this);
487487
const definition = definitionForElement.get(host);
488488
if (definition['formAssociated'] === true) {
489-
originalMethod?.call(this, ...args);
489+
return originalMethod?.call(this, ...args);
490490
} else {
491491
throw new DOMException(
492492
`Failed to execute ${originalMethod} on 'ElementInternals': The target element is not a form-associated custom element.`

0 commit comments

Comments
 (0)