Vanessa 2025-07-15 18:07:28 +08:00
parent 48134df50b
commit ad4964103d

View file

@ -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) {