[ESG] Fix selecting emoji
This commit is contained in:
parent
4f67ad0bda
commit
0a96e4893e
@ -257,8 +257,10 @@ export class EmoticonsDropdown {
|
|||||||
this.events.onOpen.forEach(cb => cb());
|
this.events.onOpen.forEach(cb => cb());
|
||||||
|
|
||||||
const sel = document.getSelection();
|
const sel = document.getSelection();
|
||||||
if(sel.rangeCount) {
|
if(sel.rangeCount && document.activeElement === appImManager.chat.input.messageInput) {
|
||||||
this.savedRange = sel.getRangeAt(0);
|
this.savedRange = sel.getRangeAt(0);
|
||||||
|
} else {
|
||||||
|
this.savedRange = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
EmoticonsDropdown.lazyLoadQueue.lock();
|
EmoticonsDropdown.lazyLoadQueue.lock();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user