Closed fragm3 closed 5 years ago
Using ternary wont work here, error:
@ms10398 @gabru-md @rupav @zamhaq please review
@fragm3 can you try it in this way ?
scrollIconBottom.style.display = (messages.scrollTop === 0)? "block":"none" ;
the screenshot says that there is no assignment, so you can use the way I suggested above. Give it a try and if it works, then it is good, else we can simply merge this PR of yours and then iterate on this one.
something like this should get this working in no time. if there is still some problem then we can do it in the later PRs.
Thanks! Cheers!
Done , please review @gabru-md @ms10398 @zamhaq
@rupav Done the changes, squashed the commits.
Fixes #342
Closed PR https://github.com/fossasia/susi_chromebot/pull/371 due to some multiple merge conflicts.
Checklist
master
branch.Short description of what this resolves:
Added scroll to top functionality
Changes proposed in this pull request: