Skip to content

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Dec 12, 2025

Purpose

See: #1680

When pasting comments, the data-bn-thread-id attribute is present in the clipboard data.
This indicates that the pasted content contains comments. But if the content with comments comes from another document, it will create orphaned comments that are not linked to this document and create errors.

Proposal

To avoid this, when a comment is pasted, we refresh the threads to ensure that only comments relevant to the current document are displayed.

@AntoLC AntoLC self-assigned this Dec 12, 2025
@AntoLC AntoLC added bug Something isn't working frontend labels Dec 12, 2025
When pasting comments, the data-bn-thread-id
attribute is present in the clipboard data.
This indicates that the pasted content contains comments.
But if the content with comments comes from another
document, it will create orphaned comments that
are not linked to this document and create errors.
To avoid this, we refresh the threads to ensure
that only comments relevant to the current document
are displayed.
@AntoLC AntoLC force-pushed the fix/comments-copy-bug branch from 7d5f68d to edc4f3d Compare December 12, 2025 13:45
@AntoLC AntoLC requested a review from Ovgodd December 12, 2025 13:45
@AntoLC AntoLC mentioned this pull request Dec 12, 2025
10 tasks
@github-actions
Copy link

github-actions bot commented Dec 12, 2025

Size Change: +156 B (0%)

Total Size: 4.14 MB

Filename Size Change
apps/impress/out/_next/static/6f8f5ee6/_buildManifest.js 0 B -903 B (removed) 🏆
apps/impress/out/_next/static/083355f5/_buildManifest.js 903 B +903 B (new file) 🆕

compressed-size-action

@AntoLC
Copy link
Collaborator Author

AntoLC commented Dec 12, 2025

This #1733 save partially the problem as well, no crash anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants