DataTable error while using stateStorage with date filter #1020
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
First, thank you for the great library.
I have a DataTable column with
dataType="date"
and using default date filter modes. When enablingstateStorage
on the DataTable I got the following error:After some digging, I have found that in "src > components > DataTable.vue" the
saveState()
is usingJSON.stringify(state)
which will convert date objects to ISO8601 string, Then therestoreState()
is usingJSON.parse(stateString)
which will keep the date as string and causes error when calling date methods e.g.getTime()
on it to filter.I made a PR to fix this and will submit it soon.
The text was updated successfully, but these errors were encountered: