chore: format
This commit is contained in:
parent
bce88ec199
commit
ff08d044b5
2 changed files with 7 additions and 3 deletions
|
@ -841,7 +841,9 @@ export async function openEmojiPicker(
|
|||
|
||||
activeTextarea = initialTextarea;
|
||||
|
||||
const textareas = document.querySelectorAll<HTMLTextAreaElement | HTMLInputElement>("textarea, input");
|
||||
const textareas = document.querySelectorAll<
|
||||
HTMLTextAreaElement | HTMLInputElement
|
||||
>("textarea, input");
|
||||
for (const textarea of Array.from(textareas)) {
|
||||
textarea.addEventListener("focus", () => {
|
||||
activeTextarea = textarea;
|
||||
|
@ -853,7 +855,9 @@ export async function openEmojiPicker(
|
|||
for (const node of Array.from(record.addedNodes).filter(
|
||||
(node) => node instanceof HTMLElement,
|
||||
) as HTMLElement[]) {
|
||||
const textareas = node.querySelectorAll<HTMLTextAreaElement | HTMLInputElement>("textarea, input");
|
||||
const textareas = node.querySelectorAll<
|
||||
HTMLTextAreaElement | HTMLInputElement
|
||||
>("textarea, input");
|
||||
for (const textarea of Array.from(textareas).filter(
|
||||
(textarea) => textarea.dataset.preventEmojiInsert == null,
|
||||
)) {
|
||||
|
|
Loading…
Reference in a new issue