chore: format

This commit is contained in:
naskya 2024-04-18 05:22:54 +09:00
parent bce88ec199
commit ff08d044b5
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
2 changed files with 7 additions and 3 deletions

View File

@ -244,7 +244,7 @@ const itemsEl = ref<HTMLDivElement>();
/**
* Strictly speaking, this type conversion is wrong
* because `ref` will deeply unpack the `ref` in `MenuSwitch`.
* because `ref` will deeply unpack the `ref` in `MenuSwitch`.
* But it performs correctly, so who cares?
*/
const items2 = ref([]) as Ref<InnerMenuItem[]>;

View File

@ -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,
)) {