Watchdog's _save method can be called when the editor is being destroyed #10643
Labels
package:watchdog
squad:collaboration
Issue to be handled by the Collaboration team.
support:2
An issue reported by a commercially licensed client.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
https://github.com/ckeditor/ckeditor5-watchdog/blob/64495826718bf7e9ee414a299680775f7df4a6ea/src/editorwatchdog.js#L248
It seems that this issue is connected with the fact that selecting or deselecting a comment currently fires a
change:data
event (#9901).I suspect that stopping the
change:data
listener just before destroying the editor should be enough to solve this issue:https://github.com/ckeditor/ckeditor5-watchdog/blob/64495826718bf7e9ee414a299680775f7df4a6ea/src/editorwatchdog.js#L226-L240
The text was updated successfully, but these errors were encountered: