diffplug / diffplug/gitcasso

comment draft lags when defocusing tab

Ouverte
#72 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
HTML
Étoiles
58
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.