mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
add getForm() method
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user