Issues with repetitive replies on expand button click

PixPin_2025-09-11_17-32-00

When the “expand reply” button is clicked multiple times, or if it’s clicked repeatedly before the content has finished loading, it can result in multiple identical replies being displayed.

2 Likes

any updates on this issue?

I’m not able to replicate this behavior. Is it still happening on your end? If so, can you try in safe mode, to exclude any theme components or plugins or customizations that are just affecting your site?

I can, just repro’ed here on meta

Moving this to bug

2 Likes

Huh - you are able to repro in this post? iOS 26 bugs with fixed position elements in Discourse - #5 by DudeMeister

I just tried myself and it did not duplicate. What are you doing to get it to duplicate?

Yes that post. Literally just rapid clicking on the expand button. Using a chromium browser, havent tested others yet.

Ah, ok. I can confirm that doing that does not duplicate the items for me. I am on Chrome Version 140.0.7339.133 (Official Build) (arm64) on OSX.

Doesn’t immediately trigger but can repro consistently when doing it long enough

I would say it’s very low priority though, as at this point it’s almost intentionally trying to break the site.

I’ll leave it up to you whether we close with a wont-fix or not.

1 Like

On my community, due to significant network latency, many users try to click the expand reply button multiple times.

Perhaps disabling the button while loading, or using replace instead of append for the reply list?

* Network latency is a function of several factors, including Cloudflare, user location, and community size.

2 Likes

Thats a better approach in general imo :+1:t2:

1 Like

Thanks for the clarification, but I’d like to know whether Discourse accepts pull requests aimed at fixing this issue.

1 Like

Oh absolutely, we are very appreciative of any contributions! I’ve tagged the topic with pr-welcome

1 Like

Thanks for the clarify, I’ve opened a PR on GitHub for this issue: FIX: Disable replies button until replies are loaded by TethysPlex · Pull Request #35136 · discourse/discourse · GitHub

3 Likes

Thanks for the PR @TethysPlex ! I’ve left a few comments on the PR in terms of simplifying the code but the overall approach is directionally there :+1:

1 Like

@TethysPlex Thanks for addressing the comments and your contribution! I’ve approved and merged the PR :slight_smile:

3 Likes

This topic was automatically closed after 15 hours. New replies are no longer allowed.