chore: format
This commit is contained in:
parent
bce88ec199
commit
ff08d044b5
2 changed files with 7 additions and 3 deletions
|
@ -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[]>;
|
||||||
|
|
|
@ -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,
|
||||||
)) {
|
)) {
|
||||||
|
|
Loading…
Reference in a new issue