Skip to content

Colon + New Line on Microblog Textbox Appends "null" to Previous Line #2151

Description

Describe the bug
When attempting to write a new microblog post, after hitting Enter at the end of the line where the last character on the line is a colon (:), the last word in the line is transformed into "null". This is intermittent, not every Enter event does this. I have a video but Github doesn't seem to allow it to upload.

After a little more testing, I think the issue is the emoji picker, which is triggered by the colon character. I think if you add a newline, then go back to the previous line, there is an attempt to bring up an emoji picker, but if the word has no corresponding emoji, then "null" is inserted instead.

On which Mbin instance did you find the bug?
kbin.earth

Which Mbin version was running on the instance?
1.9.1

To Reproduce
Steps to reproduce the behavior:

  1. Start a new microblog post.
  2. Write a line of text ending in a colon.
  3. Hit Enter to add a new line.
  4. Hit Backspace to go back to the previous line.
  5. Hit Enter again.
  6. Observe the previous line of text now ending with "null".

Expected behavior
Words ending in a colon should not be replaced by "null" if no corresponding emoji exists for that word.

Screenshots
Image
Image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • Browser Version: 151.0.2

Smartphone (please complete the following information):

  • Device: N/A
  • OS: N/A
  • Browser: N/A
  • Browser Version: N/A

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontendVisual issues, improvements, bugs or other aspects relating mostly to the front end

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions