Composer starten vanuit Topic Reply onderaan Topic: Concept ontbreekt bij opnieuw initialiseren

AI-generated summary

A user merefield reported a potential bug where drafts disappear after closing and reopening the Composer from the bottom reply button of a topic, despite being saved and visible in the drafts list. Refreshing the page restores the draft automatically. Ethsim2 speculated it might be deliberate, noting a stay/reload prompt appears when drafting over an existing draft. mcwumbly flagged the issue to davidb, linking to a relevant PR (#33543) that appears to resolve it. davidb confirmed the PR fixes the issue and that it was merged the following day. He verified the fix works as expected — drafts now persist correctly when reopening the Composer from the topic reply. This issue falls under the “Bug” category with the “drafts” tag, and the fix is now live.

This might be a bug, but I’m not sure why this doesn’t work:

Steps to Reproduce.

  • venture into a Topic :ninja:
  • go to bottom of Topic and hit Reply
  • start drafting your Topic in the Composer :scroll:
  • hit the down arrows to minimise the Composer
  • Close the Composer :cross_mark:
  • when prompted, save your Draft
  • Hit the Reply button again

Expected result:

  • Draft is there

Actual result:

  • Draft is nowhere to be seen! :open_mouth:

HOWEVER

  • The draft exists in my list of drafts
  • If I refresh the Topic, the Composer will auto-open and the draft will pop up. :sparkles:

This looks like a missed opportunity - or is it deliberate?

4 likes

Ik heb altijd gedacht dat het opzettelijk was. Ik merk echter dat na het proberen om een nieuwe versie te schrijven waar de oude versie was, je een prompt krijgt om te blijven/herladen.

@davidb can you take a peek at this one?

It sounds similar to what you’re working on here, but I’m not sure it’s the exact same issue:

https://github.com/discourse/discourse/pull/33543

I did a quick test myself, and it does look like the PR fixes this.

3 likes

Bedankt voor de melding en de repro, de PR die @mcwumbly hierboven deelde, zal dit oplossen. Als er geen problemen zijn, zal deze deze week worden samengevoegd.

3 likes

Dit is gisteren samengevoegd, ik heb een concept over dit onderwerp getest en het lijkt correct te werken.

1 like

Dit onderwerp werd automatisch gesloten na 2 dagen. Nieuwe reacties zijn niet meer toegestaan.