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.
@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…
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 <-).