mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 12:15:16 +01:00
This commit is contained in:
parent
48134df50b
commit
ad4964103d
1 changed files with 1 additions and 1 deletions
|
|
@ -816,7 +816,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
return;
|
||||
}
|
||||
let target = event.target as HTMLElement;
|
||||
if (target.classList.contains("av__gallery-img")) {
|
||||
if (target.classList?.contains("av__gallery-img")) {
|
||||
target = hasClosestByClassName(target, "av__gallery-item") as HTMLElement;
|
||||
}
|
||||
if (!target) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue