comment draft lags when defocusing tab
- Linguagem predominante
- HTML
- Estrelas
- 58
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
- 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.
Guia de contribuição
Direção de pesquisa
Reproduza a sequência do popup descrita na issue e, em seguida, rastreie a troca entre o popup e o background para GET_OPEN_SPOTS e o evento LOST_FOCUS da aba que carrega o rascunho atualizado. Verifique o tratamento de GetTableRowsResponse e das mudanças de foco; está concluído quando reabrir ou abrir o popup imediatamente exibe o rascunho de comentário mais recente.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- html
- Domínio
- frontend
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100