Skip to content

Cannot insert newline while using a colon after a whitespace

Summary

Cannot insert newline while using a colon after a whitespace

Steps to reproduce

Seen on any project on gitlab.com

  • Open an issue on gitlab on any project
  • switch to rich text editing
  • type a description, add a colon preceded by a whitespace (in english, punctuations like colons are not preceded by whitespaces, but in french yes)
  • (emoji suggestions pops up)
  • press "enter" key on keyboard to insert a new line
  • => new line is not inserted and emoji suggestions pop up is still open

What is the current bug behavior?

In rich text editor, when trying to insert a new line by pressing "enter" after a colon preceded by a whitespace, emoji suggestions pop up does not close and new line is not inserted

What is the expected correct behavior?

In rich text editor, when trying to insert a new line by pressing "enter" after a colon preceded by a whitespace (and no emoji is selected), emoji suggestions pop up closes and new line is inserted.

Relevant logs and/or screenshots

image.png

Workaround

Add a single additional space after the : or ! to dismiss the dropdown.

Edited by John Hope