🎨 Unable to start selection from the .protyle-action element of the code block (#14997)

fix https://github.com/siyuan-note/siyuan/issues/13863
This commit is contained in:
Jeffrey Chen 2025-07-01 17:31:02 +08:00 committed by GitHub
parent 6f312ea7cc
commit cfc1fff791
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -643,7 +643,7 @@ export class WYSIWYG {
clearSelect(["img", "av"], protyle.wysiwyg.element);
}
if (hasClosestByClassName(target, "protyle-action") ||
if ((hasClosestByClassName(target, "protyle-action") && !hasClosestByClassName(target, "code-block") )||
(hasClosestByClassName(target, "av__cell--header") && !hasClosestByClassName(target, "av__widthdrag"))) {
return;
}