# Post entry: Entered text deleted on enter

**URL:** https://meta.discourse.org/t/post-entry-entered-text-deleted-on-enter/109517
**Category:** Support
**Created:** [February 19, 2019, 6:51am UTC](https://meta.discourse.org/t/post-entry-entered-text-deleted-on-enter/109517 "2019-02-19T06:51:14Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Arnd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arnd/32/127907_2.png) [@Arnd](https://meta.discourse.org/u/Arnd)
#### Post date: [February 19, 2019, 6:51am UTC](https://meta.discourse.org/t/post-entry-entered-text-deleted-on-enter/109517/1 "2019-02-19T06:51:14Z")

</div>

Hello,

I encounter the following problem:

When creating a post and starting a new line with a mention immediately followed by a colon all text entered after the mention will get deleted when pressing the enter key.

Before pressing `Enter`:

> @example: The quick brown fox

After pressing`Enter`:

> @example

I’m on 2.3.0.beta2 +98…

Thanks, Arnd

---

<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: [February 19, 2019, 8:03am UTC](https://meta.discourse.org/t/post-entry-entered-text-deleted-on-enter/109517/2 "2019-02-19T08:03:37Z")

</div>

Could be this is an edge case in completion involving the colon instead of a space?

You can try pressing enter after completing the name.

---

<div class="post-metadata">

### Author: ![Arnd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arnd/32/127907_2.png) [@Arnd](https://meta.discourse.org/u/Arnd)
#### Post date: [February 19, 2019, 8:29am UTC](https://meta.discourse.org/t/post-entry-entered-text-deleted-on-enter/109517/3 "2019-02-19T08:29:16Z")

</div>

I tried different things:

- `@example` + enter  
User completion pop up closes
- `@example:` + enter  
User completion pop up closes after pressing : and `:` disappears after enter
- `@example Something` + enter  
User completion pop up closes after pressing space and all text after username disappears after enter
- `@example: Something` + enter  
User completion pop up closes after pressing : and all text after username disappears after enter
- `@example: Something` + backspace + enter  
User completion pop up closes after pressing : but all text remains after pressing enter  
If the last character before enter is a backspace the text is **not** deleted

I became aware of this problem as a user encountered this and was wondering why his entered text disappeared when pressing enter…

---

<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 7, 2019, 3:17pm UTC](https://meta.discourse.org/t/post-entry-entered-text-deleted-on-enter/109517/4 "2019-03-07T15:17:17Z")

</div>

This looks bad, we should not be deleting anything when there’s a space… @maja can you have a look? Be careful, there are lots of worms in that can.

---

<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 7, 2019, 5:46pm UTC](https://meta.discourse.org/t/post-entry-entered-text-deleted-on-enter/109517/6 "2019-03-07T17:46:56Z")

</div>

I am pretty sure this was all fixed by @dan and @sam a while back.

---

<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 7, 2019, 5:51pm UTC](https://meta.discourse.org/t/post-entry-entered-text-deleted-on-enter/109517/7 "2019-03-07T17:51:11Z")

</div>

Sure, @maja can close if she can’t reproduce.

---

<div class="post-metadata">

### Author: ![Arnd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arnd/32/127907_2.png) [@Arnd](https://meta.discourse.org/u/Arnd)
#### Post date: [March 7, 2019, 9:17pm UTC](https://meta.discourse.org/t/post-entry-entered-text-deleted-on-enter/109517/8 "2019-03-07T21:17:54Z")

</div>

I did a retest and all but one case now work fine. The only case still behaving strange is:

- `@example Something` + enter  
User completion pop up closes after pressing space and all text after username disappears after enter

This only happens if a single word is entered containing only characters. It does not happen if multiple words are added (separated by space) or if there are non alpha characters (like ,, ? or ← ).

I’m on v2.3.0.beta3 +16.

---

<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: [July 1, 2019, 4:42pm UTC](https://meta.discourse.org/t/post-entry-entered-text-deleted-on-enter/109517/9 "2019-07-01T16:42:25Z")

</div>

Closing since I can’t reproduce this here.

@Arnd, feel free to flag to re-open if you can.

---

<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: [July 1, 2019, 4:42pm UTC](https://meta.discourse.org/t/post-entry-entered-text-deleted-on-enter/109517/10 "2019-07-01T16:42:30Z")

</div>


