From 33404774ea3ce05c39abedd2c66d84792023a76c Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 23 May 2026 12:16:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootstrapBlazor.Chart/Components/Chart/Chart.razor.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js b/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js index 9b46c58e..61b9f790 100644 --- a/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js +++ b/src/components/BootstrapBlazor.Chart/Components/Chart/Chart.razor.js @@ -555,12 +555,13 @@ export function toImage(id, mimeType) { } export function dispose(id) { - const chart = Data.get(id) + const d = Data.get(id) Data.remove(id) BootstrapBlazor.Chart.removeOptionsById(id); - if (chart) { - EventHandler.off(window, 'resize', chart.resizeHandler) + if (d) { + const { chart, chart: { resizeHandler } } = d; + EventHandler.off(window, 'resize', resizeHandler) chart.destroy() } } From b5f793faed0a555383e3dd76802bc5c421fae0e4 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 23 May 2026 12:17:20 +0800 Subject: [PATCH 2/2] chore: bump version 10.0.3 --- .../BootstrapBlazor.Chart/BootstrapBlazor.Chart.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BootstrapBlazor.Chart/BootstrapBlazor.Chart.csproj b/src/components/BootstrapBlazor.Chart/BootstrapBlazor.Chart.csproj index 3570d624..2938cdfd 100644 --- a/src/components/BootstrapBlazor.Chart/BootstrapBlazor.Chart.csproj +++ b/src/components/BootstrapBlazor.Chart/BootstrapBlazor.Chart.csproj @@ -1,7 +1,7 @@ - 10.0.2 + 10.0.3