Emoji added to merge request instead of comment
Description
When I sometimes try to add an emoji to a comment, and this emoji is not listed in "Frequently used", when I search for it, and click it, it gets added to a issue / merge request, not to a comment itself.
It does not happen every time.
Gif
This seems to only happen on merge requests
Steps to reproduce: (100%
😉 )
Open a merge request with a discussion or comment
Open the emoji menu using the emoji note action button (at the top right of the comment)
Click the search box
Select an emoji
The search box is focused by default, so people don't usually need to click it, but there are other parts of that container that can trigger the behavior too (it's padding).
See https://gitlab.com/gitlab-org/gitlab-ce/issues/35530#note_57912895 (thanks @deckar01
Edited by Eric Eastwood