Browse Source

[ESG] Fix selecting emoji

master
Eduard Kuzmenko 3 years ago
parent
commit
0a96e4893e
  1. 4
      src/components/emoticonsDropdown/index.ts

4
src/components/emoticonsDropdown/index.ts

@ -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…
Cancel
Save