Problemen met repetitieve antwoorden bij het klikken op de uitklapknop

AI-generated summary

A discussion on Discourse’s meta forum addresses an issue where repeatedly clicking the “expand reply” button can cause multiple identical replies to appear, particularly under network latency. TethysPlex first reports the bug, noting it affects users with slow connections, and suggests disabling the button during loading or using a replace method instead of appending. chapoi confirms the issue and demonstrates it with a video. tobiaseigen initially cannot reproduce it but later acknowledges the behavior under rapid clicking. The issue is marked as low priority but accepted for a fix. TethysPlex submits a pull request, which is reviewed and merged by kelv, with the topic tagged as pr-welcome to encourage contributions TethysPlex.

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

Zijn er updates over dit probleem?

Ik kan dit gedrag niet repliceren. Gebeurt het nog steeds bij jou? Zo ja, kun je het proberen in de veilige modus, om thema-onderdelen, plug-ins of aanpassingen die alleen jouw site beïnvloeden uit te sluiten?

I can, just repro’ed here on meta

Moving this to bug

2 likes

Huh - ik heb geprobeerd dit te reproduceren op mijn persoonlijke site en op een onderwerp dat slechts één antwoord had. Ik denk dat er meerdere antwoorden nodig zijn om het te reproduceren? Ik zal het opnieuw proberen.

Ja, dat bericht. Letterlijk gewoon snel op de uitklapknop klikken. Ik gebruik een Chromium-browser, andere nog niet getest.

Ah, ok. Ik kan bevestigen dat dit de items niet voor mij dupliceert. Ik gebruik Chrome versie 140.0.7339.133 (Officiële build) (arm64) op 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

In mijn community proberen veel gebruikers de knop ‘antwoord uitvouwen’ meerdere keren te klikken vanwege aanzienlijke netwerklatentie.\n\nMisschien de knop uitschakelen tijdens het laden, of replace gebruiken in plaats van append voor de antwoordlijst?\n\n* Netwerklatentie is een functie van verschillende factoren, waaronder Cloudflare, gebruikerslocatie en communitygrootte.

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

Dit onderwerp werd automatisch gesloten na 15 uur. Nieuwe reacties zijn niet meer toegestaan.