Skip to content

Commit 06e492e

Browse files
committed
Make Dispose Virtual
1 parent 701b2de commit 06e492e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Blazor-ApexCharts/ApexChart.razor.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,17 @@ protected override void OnParametersSet()
7676

7777
Options.Chart.Id = chartId;
7878
Options.Debug = Debug;
79-
80-
if (Width != null) {
79+
80+
if (Width != null)
81+
{
8182
Options.Chart.Width = Width;
8283
}
8384

8485
if (Height != null)
8586
{
8687
Options.Chart.Height = Height;
8788
}
88-
89+
8990
if (XAxisType != null)
9091
{
9192
if (Options.Xaxis == null) { Options.Xaxis = new XAxis(); }
@@ -548,7 +549,7 @@ private MixedType GetMixedChartType(ChartType chartType)
548549
}
549550

550551

551-
public void Dispose()
552+
public virtual void Dispose()
552553
{
553554
GC.SuppressFinalize(this);
554555
if (Options.Chart?.Id != null && isReady)

0 commit comments

Comments
 (0)