mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
8a67080691
commit
4300a353b4
1 changed files with 6 additions and 1 deletions
|
|
@ -256,7 +256,12 @@ export class MenuItem {
|
||||||
|
|
||||||
const getActionMenu = (element: Element, next: boolean) => {
|
const getActionMenu = (element: Element, next: boolean) => {
|
||||||
let actionMenuElement = element;
|
let actionMenuElement = element;
|
||||||
while (actionMenuElement && (actionMenuElement.classList.contains("b3-menu__separator") || actionMenuElement.classList.contains("b3-menu__item--readonly"))) {
|
while (actionMenuElement &&
|
||||||
|
(actionMenuElement.classList.contains("b3-menu__separator") ||
|
||||||
|
actionMenuElement.classList.contains("b3-menu__item--readonly") ||
|
||||||
|
// https://github.com/siyuan-note/siyuan/issues/12518
|
||||||
|
actionMenuElement.getBoundingClientRect().height === 0)
|
||||||
|
) {
|
||||||
if (actionMenuElement.querySelector(".b3-text-field")) {
|
if (actionMenuElement.querySelector(".b3-text-field")) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue