adobe / adobe/react-webcomponent

byContentVal does not update in cases where there are no children

オープン
#14 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
104
フォーク
20
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

byContentVal デコレータを見つけ、デコレートされた値が子ノードではなくノード自体にある場合に、どのように内容を監視するかを確認してください。ButtonModel の例を再現し、予定されていたテストケースを追加して、ノードの内容を変更すると label が更新されることを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。