mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-04-30 12:48:01 +08:00
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. 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. |
||
|---|---|---|
| .. | ||
| components | ||
| modals | ||
| pages | ||
| cdp.rb | ||