# User edits his last comment, gets "composer was opened without a draft key"

**URL:** https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341
**Category:** Bug
**Created:** [March 15, 2015, 1:33am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341 "2015-03-15T01:33:03Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)
#### Post date: [March 15, 2015, 1:33am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/1 "2015-03-15T01:33:03Z")

</div>

One of my users use an iPhone and Safari. When he tried to edit his posts he gets the message “composer was opened without a draft key”.

Some specifics according to himself:

> If I try to edit a comment and it happens again, I’ll keep you informed. It actually has happened 5 or 6 times. However, let’s say I go up to another comment in the same thread, I have no issues with editing previous comments. Only happens on the last comment I have made in the thread. Weird!

Link to thread:

> **[Edit issues](https://forum.e-liquid-recipes.com/t/edit-issues/15497)**
>
> Don’t know exactly what this means? I was trying to edit a post and this popped up.

I’m on v1.3.0.beta3 +19 ([GitHub - discourse/discourse at 399418e1ff186651cedb3044f7d807b8105e670f · GitHub](https://github.com/discourse/discourse/tree/399418e1ff186651cedb3044f7d807b8105e670f))

---

<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: [March 15, 2015, 9:39am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/2 "2015-03-15T09:39:04Z")

</div>

Weird, we have not seen this one in ages. We have seen tremendous amounts of problems with latest builds of safari on ios so it may be related.

I will have a look to see if there is any extra protection we can add.

---

<div class="post-metadata">

### Author: ![Moter8](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moter8/32/120941_2.png) [@Moter8](https://meta.discourse.org/u/Moter8)
#### Post date: [March 15, 2015, 9:49am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/3 "2015-03-15T09:49:35Z")

</div>

Has happened to me too on Chrome beta 42 on Android on meta. I was also editing a comment or so, I can’t quite remember.

 ![](https://global.discourse-cdn.com/meta/original/3X/4/d/4d27686756f5bf4a2027c0ded89686602d23e364.png)

Screenshot taken on 2015-03-12.

---

<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: [March 15, 2015, 9:51am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/4 "2015-03-15T09:51:11Z")

</div>

Can you work out a repro on try, an exact repro would make it easy to solve

---

<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 15, 2015, 9:53am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/5 "2015-03-15T09:53:25Z")

</div>

I suspect it is some kind of new regression, we have not seen this in ages but I heard it reported on community.imgur as well recently.

---

<div class="post-metadata">

### Author: ![Moter8](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moter8/32/120941_2.png) [@Moter8](https://meta.discourse.org/u/Moter8)
#### Post date: [March 15, 2015, 10:05am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/6 "2015-03-15T10:05:49Z")

</div>

I was able to reproduce it easily:

Create a new thread, editing this post works.  
Reply to the OP, the page seems to reload a bit and the composer error pops up after tapping on edit.  
This error pops up as many times as you hit the edit icon, reloading the site fixes this.

* * *

Post a reply to some comment and the same thing happens as above.

* * *

I tried replying to someone else’s comment but editing that works fine. Got the bug replying to an OP. Not sure.

* * *

 ![](https://global.discourse-cdn.com/meta/original/3X/b/d/bdcb149bfcb33c27540b805b1e8a2b703d2de26d.png) ![](https://global.discourse-cdn.com/meta/original/3X/1/0/10fb861131186e56fcfa92bbf7d1c7a6d5625fa4.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/5/0/5024f13451fac2c25ce6341fd98e676e0016be1c.png)

---

<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: [March 15, 2015, 10:08am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/7 "2015-03-15T10:08:02Z")

</div>

awesome, will fix first thing tomorrow

---

<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: [March 15, 2015, 10:11am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/8 "2015-03-15T10:11:54Z")

</div>

So this is an android chrome mobile issue only right ?

---

<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 15, 2015, 10:15am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/9 "2015-03-15T10:15:21Z")

</div>

Possible, I believe the imgur report looked like Android Chrome to me as well.

---

<div class="post-metadata">

### Author: ![Moter8](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moter8/32/120941_2.png) [@Moter8](https://meta.discourse.org/u/Moter8)
#### Post date: [March 15, 2015, 11:57am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/10 "2015-03-15T11:57:04Z")

</div>

Well, OP’s user had this bug appear on his Safari/iPhone.

Can anybody try to repro what I did but on Safari?

---

<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: [March 16, 2015, 6:17am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/11 "2015-03-16T06:17:31Z")

</div>

this should be fixed per:

[https://github.com/discourse/discourse/commit/1d021d701910013665b2baeb7cd353d300f72477](https://github.com/discourse/discourse/commit/1d021d701910013665b2baeb7cd353d300f72477)

---

<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: [March 16, 2015, 6:17am UTC](https://meta.discourse.org/t/user-edits-his-last-comment-gets-composer-was-opened-without-a-draft-key/26341/12 "2015-03-16T06:17:34Z")

</div>


