martin
(Martin Brennan)
Octobre 22, 2025, 4:43
4
Ceci a maintenant été fusionné :
main ← issue/handle-cancel-topic-reply-choice-dialog
opened 03:01AM - 22 Oct 25 UTC
Steps to reproduce:
* Start drafting a reply to a topic
* Write some text.
… * Navigate to a different topic while keeping the draft open
* Click reply on the composer and choose cancel in the modal asking which topic you want to reply to.
* Write some more text.
* Copy the text you have written or memorize your input.
* Reload the page/ close the composer.
* Navigate back to the topic you replied to
* Open your draft.
* Everything written after clicking cancel is missing.
The modal in question:
<img width="501" height="314" alt="image" src="https://github.com/user-attachments/assets/e3f3d3f3-0cb9-421f-90cc-607e34ccf2b3" />
This was happening because we weren't doing anything on Cancel for
the topic reply choice dialog, and we were doing `disableDrafts` before
opening the dialog, so drafts never resumed.
The fix is to just save the current draft on cancel then turn on
draft saving again so the user can continue typing and delay the
question about "Which topic do you want to reply to?" until later.
c.f. https://meta.discourse.org/t/draft-is-no-longer-automatically-saved-after-you-cancel-replying/386370
Also rename TopicLabelContent to TopicReplyChoiceDialog, it
is more specific and reflects what the component actually does.
Nous mettions en pause la sauvegarde des brouillons lors de l’ouverture de cette boîte de dialogue, puis ne la reprenions jamais lorsqu’elle était fermée.
5 « J'aime »