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 * 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? * But it performs correctly, so who cares?
*/ */
const items2 = ref([]) as Ref<InnerMenuItem[]>; const items2 = ref([]) as Ref<InnerMenuItem[]>;

View file

@ -841,7 +841,9 @@ export async function openEmojiPicker(
activeTextarea = initialTextarea; 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)) { for (const textarea of Array.from(textareas)) {
textarea.addEventListener("focus", () => { textarea.addEventListener("focus", () => {
activeTextarea = textarea; activeTextarea = textarea;
@ -853,7 +855,9 @@ export async function openEmojiPicker(
for (const node of Array.from(record.addedNodes).filter( for (const node of Array.from(record.addedNodes).filter(
(node) => node instanceof HTMLElement, (node) => node instanceof HTMLElement,
) as 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( for (const textarea of Array.from(textareas).filter(
(textarea) => textarea.dataset.preventEmojiInsert == null, (textarea) => textarea.dataset.preventEmojiInsert == null,
)) { )) {