馃悰 [Bug] TypeError: Cannot read property 'offsetTop' of null
Created by: Tirokk
Authored by roschaefer Closed
馃悰 Bugreport
Clicking around on a post page can lead to this error page:
Steps to reproduce the behavior
- Click on a post with 0 comments
- Click on "Comments"
- Click on "More Info"
- Click on "Comments" again
- Boom!
馃挜
Expected behavior
Should see the comments
Version & Environment
robert@e480 ~/D/h/Human-Connection> chromium --version
Chromium 76.0.3809.100 Arch Linux
robert@e480 ~/D/h/Human-Connection> cat /proc/version
Linux version 5.2.6-arch1-1-ARCH (builduser@heftig-3961) (gcc version 9.1.0 (GCC)) #1 SMP PREEMPT Sun Aug 4 14:58:49 UTC 2019
Additional context
git blame
shows me that the bug was introduced in 0a66ad56. @Tirokk @ogerly never commit any code that has javascript globals like window
or document
without testing it for server side rendering. Feel free to remove the whole watcher
block along with the link to comments - it's not that useful in my opinion.