mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-09 16:54:21 +01:00
🚨
This commit is contained in:
parent
d200f5b3b8
commit
add256d373
8 changed files with 24 additions and 24 deletions
|
|
@ -222,7 +222,7 @@ export const setColOption = (protyle: IProtyle, data: IAV, target: HTMLElement,
|
|||
<div class="fn__hr--small"></div>
|
||||
</div>`,
|
||||
bind(element) {
|
||||
const inputElement = element.querySelector("input")
|
||||
const inputElement = element.querySelector("input");
|
||||
inputElement.addEventListener("keydown", (event: KeyboardEvent) => {
|
||||
if (event.isComposing) {
|
||||
return;
|
||||
|
|
@ -232,14 +232,14 @@ export const setColOption = (protyle: IProtyle, data: IAV, target: HTMLElement,
|
|||
}
|
||||
});
|
||||
inputElement.value = name;
|
||||
const descElement = element.querySelector("textarea")
|
||||
const descElement = element.querySelector("textarea");
|
||||
inputElement.nextElementSibling.addEventListener("click", () => {
|
||||
const descPanelElement = descElement.parentElement
|
||||
const descPanelElement = descElement.parentElement;
|
||||
descPanelElement.classList.toggle("fn__none");
|
||||
if (!descPanelElement.classList.contains("fn__none")) {
|
||||
descElement.focus();
|
||||
}
|
||||
})
|
||||
});
|
||||
descElement.addEventListener("keydown", (event: KeyboardEvent) => {
|
||||
if (event.isComposing) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue