# Abandoning draft when switching from user reply to general reply doesn't remove text

**URL:** https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482
**Category:** Bug
**Created:** [March 25, 2019, 7:39am UTC](https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482 "2019-03-25T07:39:30Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Ellibereth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellibereth/32/202896_2.png) [@Ellibereth](https://meta.discourse.org/u/Ellibereth)
#### Post date: [March 25, 2019, 7:39am UTC](https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482/1 "2019-03-25T07:39:31Z")

</div>

To Reproduce:

1. Click on the reply to button on someone’s posts.
2. Write a long-enough thing in the composer. (A sentence suffices.)
3. Click on the reply arrow next to the person your replying to’s avatar in the composer.
4. Click on “reply to topic”.
5. Click on “Yes, abandon”.
6. You’re no longer replying to the specific person, but the post content you wrote before is still there.

---

<div class="post-metadata">

### Author: ![venarius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/venarius/32/133142_2.png) [@venarius](https://meta.discourse.org/u/venarius)
#### Post date: [March 25, 2019, 7:45am UTC](https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482/2 "2019-03-25T07:45:25Z")

</div>

I think the “Abandon” popup shouldn’t come. Will investigate.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 25, 2019, 7:45am UTC](https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482/3 "2019-03-25T07:45:34Z")

</div>

You’re still replying to the _topic_ so why would the contents suddenly be irrelevant?

---

<div class="post-metadata">

### Author: ![Ellibereth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellibereth/32/202896_2.png) [@Ellibereth](https://meta.discourse.org/u/Ellibereth)
#### Post date: [March 25, 2019, 7:49am UTC](https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482/4 "2019-03-25T07:49:24Z")

</div>

Oh, I guess the problem isn’t that the content is still there, the problem is that the popup comes up saying you’re abandoning your post when you aren’t really abandoning it.

Sorry for being unclear, meant maybe its good to change the popup, not the “keeping words there” behavior.

---

<div class="post-metadata">

### Author: ![venarius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/venarius/32/133142_2.png) [@venarius](https://meta.discourse.org/u/venarius)
#### Post date: [March 26, 2019, 4:27pm UTC](https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482/5 "2019-03-26T16:27:51Z")

</div>

Opened a PR 🙂

[https://github.com/discourse/discourse/pull/7261](https://github.com/discourse/discourse/pull/7261)

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [March 26, 2019, 4:32pm UTC](https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482/6 "2019-03-26T16:32:59Z")

</div>

The topic reply level is being abandoned though, it would be confusing to inexplicably lose the reply level and not the content. Agree the message is confusing, but I’d prefer it over nothing.

---

<div class="post-metadata">

### Author: ![venarius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/venarius/32/133142_2.png) [@venarius](https://meta.discourse.org/u/venarius)
#### Post date: [March 26, 2019, 4:43pm UTC](https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482/7 "2019-03-26T16:43:15Z")

</div>

I don’t see that. If a user wants to switch reply level after he already entered a bunch of text ( maybe because he noticed that he was on a wrong reply level after he wrote his reply ) he should be able to do so. A suddenly appearing “Are you sure you want to abandon it?” message in the middle of screen just will make the user insecure and he will think that if he clicks on “Abandon” that he will loose all of his text.

But that never happened.

Instead, the text was always there. No matter if you pressed on “Abandon” or on “Keep”. Which is more confusing than helpful. I think the user should be able to securely switch reply level mid editing without a big warning popping up.

But thats just my point of view 🙂

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [March 26, 2019, 5:37pm UTC](https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482/8 "2019-03-26T17:37:07Z")

</div>

Hence my comment that the message wasn’t perfect.

If it’s stripping metadata from the response it should really let the user know.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [March 27, 2019, 9:00pm UTC](https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482/9 "2019-03-27T21:00:30Z")

</div>

Just merged @venarius’s PR as showing the abandon modal when you’re replying in the same topic is very bad UX.

It now behaves the same as if you were to click on the Reply button on different posts in the same topic after having entered some text.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [March 27, 2019, 9:00pm UTC](https://meta.discourse.org/t/abandoning-draft-when-switching-from-user-reply-to-general-reply-doesnt-remove-text/112482/10 "2019-03-27T21:00:32Z")

</div>


