mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 20:19:13 +00:00
Fixes #109 - ensure sl-form finds all nested controls
This commit is contained in:
@@ -184,6 +184,7 @@ export class Form {
|
||||
const tags = this.formControls.map(control => control.tag);
|
||||
return slot
|
||||
.assignedElements({ flatten: true })
|
||||
.reduce((all, el) => all.concat(el, [...el.querySelectorAll('*')]), [])
|
||||
.filter(el => tags.includes(el.tagName.toLowerCase())) as HTMLElement[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user