kopia lustrzana https://github.com/shoelace-style/shoelace
Co-authored-by: cyantree <cyantree@users.noreply.github.com>pull/1924/head
rodzic
3bc8495874
commit
2a4b3ee2e9
|
@ -72,9 +72,8 @@ export class FormControlController implements ReactiveController {
|
|||
const formId = input.form;
|
||||
|
||||
if (formId) {
|
||||
const root = input.getRootNode() as Document | ShadowRoot;
|
||||
|
||||
const form = root.getElementById(formId);
|
||||
const root = input.getRootNode() as Document | ShadowRoot | HTMLElement;
|
||||
const form = root.querySelector(`#${formId}`);
|
||||
|
||||
if (form) {
|
||||
return form as HTMLFormElement;
|
||||
|
|
Ładowanie…
Reference in New Issue