gustavnavar / Grid.Blazor

Grid component with CRUD for Blazor (client-side and server-side) and ASP.NET Core MVC
GNU Lesser General Public License v2.1
696 stars 134 forks source link

TextFilterComponent IndexOutOfRangeException #378

Closed lxgxrto closed 1 year ago

lxgxrto commented 1 year ago

Describe the bug Hey All,

I've been using the package for a while and I've came across with this exception (IndexOutOfRangeException) when trying to add more than one filter value to a column text.

I've debugged this locally and found out that for some reason the TextFilterComponent is loosing its _filters state when typing a value in the input text

Screenshots I noticed that each time something is typed in the input it is triggering a re-render so that the component is loosing its current state because is calling the OnParametersSet method, adding a validation (in blue) solves the issue but I'm not sure this is the correct way to solve this image

Project info:

gustavnavar commented 1 year ago

Package 3.5.1 implements a fix for this issue