FIX: Ensure hashtag autocomplete is not behind keyboard in chat (#19419)

We must set `treatAsTextarea` to true when using autocomplete
in the chat composer, since it is at the bottom of the screen
we always want to show it above the composer. This fixes the
issue where the hashtag autocomplete results went behind the
keyboard on mobile (which was not happening for mentions).
This commit is contained in:
Martin Brennan
2022-12-12 15:14:51 +10:00
committed by GitHub
parent b6340c0d74
commit 735e96e5a0
3 changed files with 26 additions and 13 deletions
@@ -410,9 +410,12 @@ export default Component.extend(TextareaTextManipulation, {
this.site.hashtag_configurations["chat-composer"],
$textarea,
this.siteSettings,
(value) => {
this.set("value", value);
return this._focusTextArea();
{
treatAsTextarea: true,
afterComplete: (value) => {
this.set("value", value);
return this._focusTextArea();
},
}
);
},