🐛(react) add warning when onSortModelChange is missing

We encountered the case were a user reported that the column were
making cursor pointer but clicking on it was doing nothing. It was
caused by the fact that onSortModelChange was not provided. So in
this case we trigger a warning only if enableSorting is true on one
column at least.
This commit is contained in:
Nathan Vasse
2024-03-11 16:00:01 +01:00
committed by NathanVss
parent 317cab4bad
commit 974f139f14
4 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": patch
---
add warning on DataGrid when sortModel is missing