FIX: Clicking on category autocomplete row (PR #10457)

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/category-name-missing-when-not-continuing-the-sentence/160982/6