mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
This commit is contained in:
parent
9915c733f4
commit
62850f8cc3
2 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import {updateHeader} from "../render/av/row";
|
||||
|
||||
export const clearSelect = (types: ("av" | "img" | "cell" | "row"|"galleryItem")[], element: Element) => {
|
||||
export const clearSelect = (types: ("av" | "img" | "cell" | "row" | "galleryItem")[], element: Element) => {
|
||||
if (types.includes("cell")) {
|
||||
element.querySelectorAll(".av__cell--select, .av__cell--active").forEach((item: HTMLElement) => {
|
||||
item.querySelector(".av__drag-fill")?.remove();
|
||||
|
|
|
|||
|
|
@ -622,6 +622,7 @@ export class WYSIWYG {
|
|||
|
||||
// https://github.com/siyuan-note/siyuan/issues/15100
|
||||
if (galleryItemElement) {
|
||||
clearSelect(["galleryItem"], protyle.wysiwyg.element);
|
||||
return;
|
||||
}
|
||||
const avDragFillElement = hasClosestByClassName(target, "av__drag-fill");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue