From 44eabe00a1e185ff138f801ad1d13f8573edfe70 Mon Sep 17 00:00:00 2001 From: Timmy Braun <35117769+timbze@users.noreply.github.com> Date: Tue, 23 Mar 2021 17:49:32 -0600 Subject: [PATCH] Fix bug where cell value is repeated from other cell when a column is added (#263) --- GridBlazor/Pages/GridCellComponent.razor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GridBlazor/Pages/GridCellComponent.razor.cs b/GridBlazor/Pages/GridCellComponent.razor.cs index 682db61d..bf4c6312 100644 --- a/GridBlazor/Pages/GridCellComponent.razor.cs +++ b/GridBlazor/Pages/GridCellComponent.razor.cs @@ -37,6 +37,8 @@ public partial class GridCellComponent protected override void OnParametersSet() { _componentType = Column.ComponentType; + _cell = default; + _cellRender = default; if (_componentType != null) _cellRender = CreateComponent(_sequence, GridComponent, _componentType, Column, Item, RowId, false, new VariableReference(ChildComponent));