mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
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:
@@ -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();
|
||||
},
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user