diff --git a/abstract/Block.js b/abstract/Block.js index a69fa1df..61918f5c 100644 --- a/abstract/Block.js +++ b/abstract/Block.js @@ -209,6 +209,8 @@ export class Block extends BaseComponent { /** @protected */ destroyCallback() { + super.destroyCallback(); + let blocksRegistry = this.blocksRegistry; blocksRegistry?.delete(this); diff --git a/blocks/CloudImageEditor/src/elements/slider/SliderUi.js b/blocks/CloudImageEditor/src/elements/slider/SliderUi.js index 88feacd6..811572d5 100644 --- a/blocks/CloudImageEditor/src/elements/slider/SliderUi.js +++ b/blocks/CloudImageEditor/src/elements/slider/SliderUi.js @@ -163,6 +163,7 @@ export class SliderUi extends Block { } destroyCallback() { + super.destroyCallback(); this._observer?.disconnect(); } }