Javascript error if emoji_autocomplete_min_chars setting > 0 for each character typed after a colon in the composer

Uncaught (in promise) TypeError: e.map is not a function in d.editor


edit : re-writing now that I have found the cause

After some testing, it appears that this error happens when the emoji_autocomplete_min_chars site setting is set to a value different than 0.
The error will occur each time we type a character after a colon. Also, the colon must be the first character of the line or have a space character before.

If emoji_autocomplete_min_chars is set to 3, the error will appear for the first 3 characters typed before the emoji selector is shown.

composer error

I don’t know if it affects anything or causes unwanted behavior that I can’t see behind the curtains.


edit: 2.9.0.beta3 and beta2, tried in safe mode :slight_smile:

5 Likes

Yikes, let us have a debug of this
 will have a look over the next week.

2 Likes

@joffreyjaffeux do you mind having a quick look? :eyes:

2 Likes

Hi,

I will look at writing a test for this after Lunch but just confirming the repro was correct and I have a fix ready soon:

:+1:

5 Likes

Merged thanks for report :+1:

3 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.