Moin
10월 21, 2025, 8:41오후
1
이것은 Draft is no longer automatically saved after you click 'keep editing' 와 매우 유사합니다.
오늘도 매우 유사한 패턴으로 인해 내 초안의 일부가 다시 손실되었습니다. 다른 주제(topic)를 보고 있을 때 답변을 클릭한 후 취소를 누르면 자동 저장이 작동하지 않는 것 같습니다.
재현 방법:
특정 주제에 대한 답변 초안을 작성하기 시작합니다.
텍스트를 일부 작성합니다.
초안을 열어둔 채로 다른 주제로 이동합니다.
답변을 클릭하고, 답변할 주제를 묻는 모달에서 취소를 선택합니다.
추가 텍스트를 작성합니다.
작성한 텍스트를 복사하거나 입력 내용을 기억해 둡니다.
페이지를 새로고침하거나 작성 창을 닫습니다.
답변하고자 했던 주제로 돌아갑니다.
내 초안을 엽니다.
취소를 클릭한 이후에 작성한 모든 내용이 사라져 있습니다.
동영상에서 텍스트를 붙여넣고 새로고침하면 정상적으로 작동하는 것을 볼 수 있습니다. 그러나 다른 주제로 이동한 후 답변과 취소를 클릭하면 입력 내용이 저장되지 않고 새로고침 시 사라집니다. 하지만 모달에서 취소를 사용하지 않고 동일한 단계를 수행하면 최종적으로 정상적으로 작동합니다.
6개의 좋아요
renato
(Renato Atilio)
10월 22, 2025, 12:26오전
2
아직 재현이 안 되네요… 이번 주 안에 다시 시도해 보겠습니다.
2개의 좋아요
martin
(Martin Brennan)
10월 22, 2025, 1:40오전
3
Moin 씨, 방금 이 문제를 재현할 수 있었습니다. 수정 작업을 진행하겠습니다.
5개의 좋아요
martin
(Martin Brennan)
10월 22, 2025, 4:43오전
4
네, 이제 병합되었습니다:
main ← issue/handle-cancel-topic-reply-choice-dialog
merged 04:42AM - 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.
해당 다이얼로그를 열 때 초안 저장을 일시 중단했지만, 닫을 때 다시 재개하지 않는 문제가 있었습니다.
6개의 좋아요