@tiptap/core 2.0.0-beta.219 → 2.0.0-beta.220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3505,6 +3505,11 @@ class Editor extends EventEmitter {
3505
3505
  * @param transaction An editor state transaction
3506
3506
  */
3507
3507
  dispatchTransaction(transaction) {
3508
+ // if the editor / the view of the editor was destroyed
3509
+ // the transaction should not be dispatched as there is no view anymore.
3510
+ if (this.view.isDestroyed) {
3511
+ return;
3512
+ }
3508
3513
  if (this.isCapturingTransaction) {
3509
3514
  if (!this.capturedTransaction) {
3510
3515
  this.capturedTransaction = transaction;