mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
fix: use rectEl instead of targetEl in delete handler
This commit is contained in:
parent
6d2d761a31
commit
bbd910c0f2
1 changed files with 1 additions and 1 deletions
|
|
@ -1150,7 +1150,7 @@ function showAnnotationPopover(event, ann, rectEl, vaultPath, pdfPath, container
|
|||
hideAnnotationPopover();
|
||||
if (result.ok) {
|
||||
// Remove the rect element directly — no full rebuild
|
||||
if (targetEl && targetEl.parentElement) targetEl.remove();
|
||||
if (rectEl && rectEl.parentElement) rectEl.remove();
|
||||
invalidateAnnotationCache();
|
||||
} else {
|
||||
console.warn('[PF] delete annotation failed:', result.error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue