diff --git a/src/internal/form.ts b/src/internal/form.ts index 527341b96..81123cd8e 100644 --- a/src/internal/form.ts +++ b/src/internal/form.ts @@ -267,6 +267,11 @@ export class FormControlController implements ReactiveController { } } + /** Returns the associated `
` element, if one exists. */ + getForm() { + return this.form ?? null; + } + /** Resets the form, restoring all the control to their default value */ reset(invoker?: HTMLInputElement | SlButton) { this.doAction('reset', invoker);