comment draft lags when defocusing tab
- 主要語言
- HTML
- 星號
- 58
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
描述
- open a comment
- type some stuff into it
- click the gitcasso popup
- BUG: the draft is not there
- close the popup and open it again
- now the draft is there.
The sequence of events is:
- open popup
- popup sends `GET_OPEN_SPOTS` to background
- background replies with `GetTableRowsResponse`
- because popup has focus, the tab lost focus
- tab notices and sends `LOST_FOCUS` event with updated draft
- but the rows were already sent
Workaround: if you defocus the text area manually by clicking somewhere else in the tab, and then click the popup, then the popup is up-to-date right away.
貢獻指南
研究方向
重現 issue 中描述的 popup 序列,然後追蹤 popup 與 background 針對 GET_OPEN_SPOTS 的交換,以及攜帶更新後草稿的分頁 LOST_FOCUS 事件。檢查對 GetTableRowsResponse 和焦點變更的處理;重新開啟或開啟 popup 後能立即顯示最新的留言草稿即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- html
- 領域
- frontend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100