FIX: Autocomplete fadeout arrow key chat fix (#19600)

Autocomplete with fadeout was not scrolling on arrow
key press in chat, since the input is treated slightly
differently. We just need to find the fadeout div sooner.

Follow up to 64a7a2aac2
This commit is contained in:
Martin Brennan 2022-12-23 10:31:30 +10:00 committed by GitHub
parent 85b14a0359
commit 86cafc7237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -377,6 +377,8 @@ export default function (options) {
me.parent().append(div);
}
fadeoutDiv = div.find(".hashtag-autocomplete__fadeout");
if (isInput || options.treatAsTextarea) {
_autoCompletePopper && _autoCompletePopper.destroy();
_autoCompletePopper = createPopper(me[0], div[0], {
@ -450,8 +452,6 @@ export default function (options) {
top: mePos.top + pos.top - vOffset + borderTop + "px",
left: left + "px",
});
fadeoutDiv = div.find(".hashtag-autocomplete__fadeout");
}
function dataSource(term, opts) {