mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
📱
This commit is contained in:
parent
ade11e6645
commit
e32966d70b
1 changed files with 2 additions and 1 deletions
|
|
@ -114,7 +114,8 @@ export class MenuItem {
|
|||
this.element.classList.add("b3-menu__item--selected");
|
||||
}
|
||||
if (options.click) {
|
||||
this.element.addEventListener(getEventName(), (event) => {
|
||||
// 需使用 click,否则移动端无法滚动
|
||||
this.element.addEventListener("click", (event) => {
|
||||
if (this.element.getAttribute("disabled")) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue