Topic: Bug Report: Clicking ''Reply'' sends me to the top of the page

Posted under Site Bug Reports & Feature Requests

Exactly what the title says. If I click 'Reply' on a comment it shoots be to the top of the page without the text box opening.
If I open the text box manually and then click reply it still does the same, without the reply text. I already tried disabling my Adblocker and VPN (as if that has anything to do with it, but I tried) and it doesn't help.

Yeah this has been happening for a while, especially off the "comments" page.

Seems to happen more often if the comment or picture in question has some level of negative votes

camkitty said:
Yeah this has been happening for a while, especially off the "comments" page.

Seems to happen more often if the comment or picture in question has some level of negative votes

exactly

camkitty said:
Seems to happen more often if the comment or picture in question has some level of negative votes

Not sure about for pictures but I'm pretty sure for comments it's dependent on where your hide threshold is?

camkitty said:
Yeah this has been happening for a while, especially off the "comments" page.

Seems to happen more often if the comment or picture in question has some level of negative votes

That's because you click Show all comments which is the actual cause for the bug. The Show all comments button appears when there can be hidden comments under the post (because of negative votes, for example).

I've found that closing the tab you have the image open in, then re-opening it, can sometimes fix the problem. Sometimes.

so… any of you going to tell us what browser you're using, at least?
version? OS?
all we know so far is blitzdrachin has a phone

i have no such issue on firefox 56 on windows or firefox 68.5 on android

bipface said:
so… any of you going to tell us what browser you're using, at least?
version? OS?
all we know so far is blitzdrachin has a phone

i have no such issue on firefox 56 on windows or firefox 68.5 on android

ebea57 said:
That's because you click Show all comments which is the actual cause for the bug. The Show all comments button appears when there can be hidden comments under the post (because of negative votes, for example).

^ This is the cause of the bug, otherwise it doesn't occur. Chrome 84.0.4147.135

thanks striker, i see the problem now

/src/javascripts/comments.js

after the API request in show_all finishes, it replaces the entire comment section with new HTML, but doesn't reattach any of the on-click handlers added in initialize_all

is anyone having this issue before clicking the show all comments button?

bipface said:
thanks striker, i see the problem now

/src/javascripts/comments.js

after the API request in show_all finishes, it replaces the entire comment section with new HTML, but doesn't reattach any of the on-click handlers added in initialize_all

is anyone having this issue before clicking the show all comments button?

Well that explains a lot. Hadn't had a chance to sit down and debug the issue, but it seems like you've done it.

Pushed a fix for this, hopefully everything works to expectation now. Thank you bipface for diagnosing this.

Sorry to bring this back up, but I've had this issue, as well as one other related to it. Whenever I click to see hidden comments, I cannot vote on said comments. It'll show my vote for a second or two, then revoke it. I've tried this in multiple browsers (thinking an extension in Chrome was the cause), but it happens regardless.

dieselwzl said:
Sorry to bring this back up, but I've had this issue, as well as one other related to it. Whenever I click to see hidden comments, I cannot vote on said comments. It'll show my vote for a second or two, then revoke it. I've tried this in multiple browsers (thinking an extension in Chrome was the cause), but it happens regardless.

I'll look into it. There might be a lingering check for "visibility" on the server side or something missing related to making the vote buttons work. Thank you for the report.

I put in a fix for voting/edit link acting weird, and have deployed it to the site. Let me know if anything else behaves oddly within the show all section.

kiranoot said:
I put in a fix for voting/edit link acting weird, and have deployed it to the site. Let me know if anything else behaves oddly within the show all section.

Replying to and voting on hidden comments works as desired for me now. Thank you for the fix! That was really frustrating. XB

kiranoot said:
I put in a fix for voting/edit link acting weird, and have deployed it to the site. Let me know if anything else behaves oddly within the show all section.

haven't had issues anymore. Big thank you!

  • 1