# Reply doesn't clear the edit post text if clicked after Edit

**URL:** https://meta.discourse.org/t/reply-doesnt-clear-the-edit-post-text-if-clicked-after-edit/26012
**Category:** Bug
**Created:** [5 Marzo, 2015 08:43 UTC](https://meta.discourse.org/t/reply-doesnt-clear-the-edit-post-text-if-clicked-after-edit/26012 "2015-03-05T08:43:47Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![dandv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandv/32/169779_2.png) [@dandv](https://meta.discourse.org/u/dandv)
#### Post date: [5 Marzo, 2015 08:43 UTC](https://meta.discourse.org/t/reply-doesnt-clear-the-edit-post-text-if-clicked-after-edit/26012/1 "2015-03-05T08:43:47Z")

</div>

1. Edit your own post
2. Click “Reply” to it.

Note how the contents of the post edit textarea isn’t cleared for the reply.

Executon in the other order, Reply then Edit, works correctly.

 ![](https://global.discourse-cdn.com/meta/original/3X/f/0/f055399ccbd451604dd5ae8665c08e88261d0a68.gif)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [5 Marzo, 2015 10:16 UTC](https://meta.discourse.org/t/reply-doesnt-clear-the-edit-post-text-if-clicked-after-edit/26012/2 "2015-03-05T10:16:27Z")

</div>

Yeah its a regression, in the past we used to display “are you sure you want to stop editing” or something like that.

---

<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: [5 Marzo, 2015 10:25 UTC](https://meta.discourse.org/t/reply-doesnt-clear-the-edit-post-text-if-clicked-after-edit/26012/3 "2015-03-05T10:25:40Z")

</div>

I don’t think we ever did handle this, actually – I thought you opened a bug on this.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [13 Agosto, 2015 12:56 UTC](https://meta.discourse.org/t/reply-doesnt-clear-the-edit-post-text-if-clicked-after-edit/26012/4 "2015-08-13T12:56:35Z")

</div>

> <https://github.com/discourse/discourse/pull/3649>
>
> fixes: https://meta.discourse.org/t/reply-doesnt-clear-the-edit-post-text-if-cli…cked-after-edit/26012

Ok so I looked into this and discovered a few more “bugs” which I included the fix in the PR.

1. Click reply, Add some text, Click edit, Nothing happens.

2. Click reply, Add some text, hide the composer, Click edit, Composer shows up as Reply.

3. **Not fixed yet and I’m not sure if this is considered a bug** Click edit, Update the text, Click another post’s edit, Nothing happens.

cc @eviltrout since you wrote most of the composer’s code.

---

<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: [13 Agosto, 2015 15:48 UTC](https://meta.discourse.org/t/reply-doesnt-clear-the-edit-post-text-if-clicked-after-edit/26012/5 "2015-08-13T15:48:52Z")

</div>

Excellent, thanks for following up on these!

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [24 Agosto, 2015 14:58 UTC](https://meta.discourse.org/t/reply-doesnt-clear-the-edit-post-text-if-clicked-after-edit/26012/6 "2015-08-24T14:58:20Z")

</div>

> [@tgxworld](#):
>
> Not fixed yet and I’m not sure if this is considered a bug Click edit, Update the text, Click another post’s edit, Nothing happens.

One more PR before we can close this 😄

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

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [27 Agosto, 2015 15:31 UTC](https://meta.discourse.org/t/reply-doesnt-clear-the-edit-post-text-if-clicked-after-edit/26012/7 "2015-08-27T15:31:13Z")

</div>

@zogstrip Thanks for reviewing 😄 Lets close this? 🐈

---

<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: [27 Agosto, 2015 15:32 UTC](https://meta.discourse.org/t/reply-doesnt-clear-the-edit-post-text-if-clicked-after-edit/26012/8 "2015-08-27T15:32:11Z")

</div>


