adobe / adobe/react-webcomponent
byContentVal does not update in cases where there are no children
- Vorherrschende Sprache
- JavaScript
- Sterne
- 104
- Forks
- 20
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### Expected Behaviour
A simple model like this should update if the contents of the node changes:
```
class ButtonModel extends DOMModel {
@byContentVal() label;
}
```
### Actual Behaviour
The initial contents of the DOM node is read, but the model does not respond to changes
### Reproduce Scenario (including but not limited to)
Any use of the `byContentVal` decorator that isn't in a child node
#### Steps to Reproduce
I will submit a PR that includes a test case
#### Platform and Version
Chrome 72, MacOS
#### Sample Code that illustrates the problem
I will submit a PR that includes a test case
#### Logs taken while reproducing problem
Beitragsleitfaden
Rechercherichtung
Finde den byContentVal-Decorator und untersuche, wie er Inhalte beobachtet, wenn sich der dekorierte Wert am Knoten selbst statt an einem untergeordneten Knoten befindet. Reproduziere das ButtonModel-Beispiel, füge den versprochenen Testfall hinzu und bestätige, dass das Ändern der Knoteninhalte label aktualisiert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100