Megabit / Blazorise

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
https://blazorise.com/
Other
3.29k stars 532 forks source link

DataGrid multiselection crash in docs #3249

Closed bastigerner closed 2 years ago

bastigerner commented 2 years ago

Hey,

I was scrolling through the docs for the new selection changes and noticed, when trying to deselect the last item in multi-selection it crashes.

To reproduce: Select any item from one of the two grids at the bottom. Then try to deselect it.

image image

Kind regards

David-Moreira commented 2 years ago

Thanks for noticing it is indeed a bug introduced on the last release.

bastigerner commented 2 years ago

No problem ;)

Mr-Pearce commented 2 years ago

Just updated to 0.9.5.3 and it crashes with my datagrid like in the example i made with the bug before https://github.com/Megabit/Blazorise/issues/3233#issuecomment-994433885 The example also crashes when deselecting everything like in the original post above Error in Firefox log

[2021-12-28T14:57:59.437Z] Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at Blazorise.DataGrid.DataGrid`1.CheckMultipleSelectionSetEmpty(ParameterView parameters)
   at Blazorise.DataGrid.DataGrid`1.SetParametersAsync(ParameterView parameters) blazor.server.js:21:24815

Its Probably the same error?

David-Moreira commented 2 years ago

Seems like it. @stsrki has it been released?