add getForm() method

pull/1186/head
Cory LaViska 2023-02-07 09:01:32 -05:00
rodzic df967b7e84
commit 776ab2c715
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -267,6 +267,11 @@ export class FormControlController implements ReactiveController {
}
}
/** Returns the associated `<form>` 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);