noyainrain / listling

Web app to make and edit lists collaboratively.
https://listling.org/
GNU Affero General Public License v3.0
34 stars 8 forks source link

Fix moving item after viewing votes #64

Closed noyainrain closed 4 years ago

noyainrain commented 4 years ago

Moving an item after viewing its votes may fail with the following error:

TypeError: this.querySelector(...) is null index.js:564:26
    onVotesActivate http://localhost:8080/static/listling/index.js?v=88ca04bdcb1c3c62242e1388607eea44:564
    _update http://localhost:8080/static/node_modules/@noyainrain/micro/components/contextual.js?v=f65186efe33ef2b1ec9328000750ede4:101
    _onMouseEnter http://localhost:8080/static/node_modules/@noyainrain/micro/components/contextual.js?v=f65186efe33ef2b1ec9328000750ede4:68

How to reproduce:

  1. Create an example poll
  2. View the votes of an item
  3. While moving the item, hover over the number of votes again