mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
0239b88c43
commit
31c4ff9feb
2 changed files with 5 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ export const initBlockPopover = (app: App) => {
|
||||||
aElement.style.overflow = "";
|
aElement.style.overflow = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (aElement.parentElement.parentElement.classList.contains("av__views")) {
|
} else if (aElement.parentElement.parentElement.classList.contains("av__views") && aElement.parentElement.classList.contains("layout-tab-bar")) {
|
||||||
const textElement = aElement.querySelector(".item__text");
|
const textElement = aElement.querySelector(".item__text");
|
||||||
const desc = aElement.getAttribute("data-desc");
|
const desc = aElement.getAttribute("data-desc");
|
||||||
if (textElement.scrollWidth > textElement.clientWidth + 2 || desc) {
|
if (textElement.scrollWidth > textElement.clientWidth + 2 || desc) {
|
||||||
|
|
|
||||||
|
|
@ -349,7 +349,11 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value, rowIndex)}
|
||||||
if (isSearching) {
|
if (isSearching) {
|
||||||
searchInputElement.focus();
|
searchInputElement.focus();
|
||||||
}
|
}
|
||||||
|
searchInputElement.addEventListener("compositionstart", (event: KeyboardEvent) => {
|
||||||
|
event.stopPropagation();
|
||||||
|
})
|
||||||
searchInputElement.addEventListener("input", (event: KeyboardEvent) => {
|
searchInputElement.addEventListener("input", (event: KeyboardEvent) => {
|
||||||
|
event.stopPropagation();
|
||||||
if (event.isComposing) {
|
if (event.isComposing) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue