You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works like a charm, but since a default sort has been defined, the component assumes that the column (in this case, "name") must always have a sort. In other words, the third state (null) ceases to exist, and this sort must necessarily be either ascending or descending.
My suggestion would be to add a new property default to the sort object, something like:
Description
I don't know if this is a bug or a feature (haha).
In some cases, I need to initialize my sort with data from a URL. For example, I may have the following URL:
To make this possible, I use:
It works like a charm, but since a default
sort
has been defined, the component assumes that the column (in this case, "name") must always have a sort. In other words, the third state (null
) ceases to exist, and this sort must necessarily be either ascending or descending.My suggestion would be to add a new property
default
to the sort object, something like:When
true
, the current behavior would remain. Whenfalse
, the "null" sort would again be a possibility.Additional context
No response
The text was updated successfully, but these errors were encountered: