mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
16d40cf9ae
commit
06a095bce1
2 changed files with 14 additions and 5 deletions
|
|
@ -33,10 +33,13 @@ import * as dayjs from "dayjs";
|
|||
import {openCalcMenu} from "./calc";
|
||||
import {avRender} from "./render";
|
||||
import {addView, openViewMenu} from "./view";
|
||||
import {isOnlyMeta, openByMobile, writeText} from "../../util/compatibility";
|
||||
import {isOnlyMeta, writeText} from "../../util/compatibility";
|
||||
import {openSearchAV} from "./relation";
|
||||
|
||||
export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLElement }) => {
|
||||
if (isOnlyMeta(event)) {
|
||||
return false;
|
||||
}
|
||||
const blockElement = hasClosestBlock(event.target);
|
||||
if (!blockElement) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue