From 05ba451ba139c860e701fe57195883c0f104534a Mon Sep 17 00:00:00 2001 From: nd0ut Date: Fri, 1 Dec 2023 17:42:56 +0800 Subject: [PATCH] fix(img): destroy context --- blocks/Img/ImgBase.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/Img/ImgBase.js b/blocks/Img/ImgBase.js index cd75a762d..9343517da 100644 --- a/blocks/Img/ImgBase.js +++ b/blocks/Img/ImgBase.js @@ -1,4 +1,4 @@ -import { BaseComponent } from '@symbiotejs/symbiote'; +import { BaseComponent, Data } from '@symbiotejs/symbiote'; import { applyTemplateData } from '../../utils/template-utils.js'; import { createCdnUrl, createCdnUrlModifiers, createOriginalUrl } from '../../utils/cdn-utils.js'; import { PROPS_MAP } from './props-map.js'; @@ -339,6 +339,7 @@ export class ImgBase extends BaseComponent { }); this._isnObserver = null; } + Data.deleteCtx(this); } static get observedAttributes() {