mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🚨
This commit is contained in:
parent
7577933461
commit
19079acfc3
4 changed files with 8 additions and 9 deletions
|
|
@ -164,12 +164,12 @@ export const openSnippets = () => {
|
|||
dialog.element.querySelectorAll('[data-action="search"]').forEach((inputItem: HTMLInputElement) => {
|
||||
inputItem.addEventListener("input", (event: KeyboardEvent) => {
|
||||
if (event.isComposing) {
|
||||
return
|
||||
return;
|
||||
}
|
||||
filterSnippet(dialog, inputItem)
|
||||
filterSnippet(dialog, inputItem);
|
||||
});
|
||||
inputItem.addEventListener("compositionend", () => {
|
||||
filterSnippet(dialog, inputItem)
|
||||
filterSnippet(dialog, inputItem);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -188,7 +188,7 @@ const filterSnippet = (dialog: Dialog, inputItem: HTMLInputElement) => {
|
|||
snippetPanel.classList.add("fn__none");
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const genSnippet = (options: ISnippet) => {
|
||||
return `<div data-id="${options.id || ""}" data-type="${options.type}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue