Add getter for associated form
This commit is contained in:
parent
078abf35ac
commit
35490ff0e3
1 changed files with 5 additions and 0 deletions
|
@ -426,6 +426,11 @@ export class BetterSelect extends HTMLElement {
|
||||||
*/
|
*/
|
||||||
set name(name) { this.setAttribute("name", String(name)) }
|
set name(name) { this.setAttribute("name", String(name)) }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {HTMLFormElement}
|
||||||
|
*/
|
||||||
|
get form() { return this.#internals.form }
|
||||||
|
|
||||||
clear() {
|
clear() {
|
||||||
this.setValue(undefined, "")
|
this.setValue(undefined, "")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue