Naive element selection in web-component #19
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pfych/static#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
const elements = elementClassNames.map((className) => getElementsByClassName<HTMLDivElement>(className)?.[0],);This should be refactored to be scoped to the actual component itself (if this is possible with light-dom components)
Fixed by passing the element references themselves!