Add comment highlight when target from url (#9047)

* Add comment highlight css

* Add js to remove highlight on click outside

* Improve refresh page on click outside

* Use location.hash property to remove target

* Handle click ONLY clicked outside of 'targetted comment' (not other comment)

* Remove unnecessary checks and simply code

* Combine hash and setState to remove target path
This commit is contained in:
jaqra
2019-11-25 14:50:46 +03:00
committed by zeripath
parent 62bcb2b7f1
commit 802aa6d5f3
5 changed files with 32 additions and 2 deletions

File diff suppressed because one or more lines are too long