adobe / adobe/react-webcomponent
@byContent not work inner loop element
- Dominant language
- JavaScript
- Stars
- 104
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
- The @byContent() does not work inner loop element:
I implement as example codes:
`class ComponentItemModel extends DOMModel {
@byContent('section') content;
}
class ComponentModel extends DOMModel {
@byChildrenRefArray('component-item', ComponentItemModel) items;
}`
My html is as below:
`
my content
my content
`
- When I run the page to test them, the page always loading.
Contributor guide
Research direction
Start by locating the implementations of @byContent and @byChildrenRefArray, then reproduce the supplied nested component-item example. Done means the page no longer remains stuck loading and each inner loop element exposes its section content through @byContent('section').
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100