-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix: Abnormal strings appear when comments are saved after editing #29991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I don't think so, how to reproduce? |
I cannot reproduce it any more. |
@@ -436,7 +436,7 @@ async function onEditContent(event) { | |||
const $content = $segment; | |||
if (!$content.find('.dropzone-attachments').length) { | |||
if (data.attachments !== '') { | |||
$content[0].append(data.attachments); | |||
$content[0].insertAdjacentHTML('beforeend', data.attachments); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous code had a .dropzone-attachments
class, it it no longer needed to be created, @yardenshoham?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's immediately replaced...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see the previous code created and appended it, but then immediately replaced it with the HTML string, so likely it's okay.
Partially resolved(The second problem): #29986
Before
HTML strings appear when comments are saved after editing
After
2024-03-22.14.02.58.mov