mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-15 03:28:07 +01:00
🎨 插件中不绑定 TEXTAREA 回车事件
This commit is contained in:
parent
cbc005119a
commit
8f639fb07f
2 changed files with 6 additions and 15 deletions
|
|
@ -70,7 +70,7 @@ export class Setting {
|
|||
if (["INPUT", "TEXTAREA"].includes(actionElement.tagName)) {
|
||||
dialog.bindInput(actionElement as HTMLInputElement, () => {
|
||||
btnsElement[1].dispatchEvent(new CustomEvent("click"));
|
||||
});
|
||||
}, actionElement.tagName === "INPUT");
|
||||
}
|
||||
if (actionElement.tagName === "TEXTAREA") {
|
||||
contentElement.lastElementChild.lastElementChild.insertAdjacentElement("beforeend", actionElement);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue