Skip to content

date-range column filter retrieved from state causes .toISOString() exception #305

@konnsim

Description

@konnsim

mantine-react-table version

1.3.4

react & react-dom versions

18.2.0

Describe the bug and the steps to reproduce it

The attempted retrieval and population of a date range column filter min/max values from persisted state (local or session storage) into a date selection input throws an exception on the value.toISOString() call of the HiddenDatesInput component.

image

Minimal, Reproducible Example - (Optional, but Recommended)

Apply the date range filters on the Created column then refresh the page.
https://codesandbox.io/p/devbox/young-sun-xy2p97

Note that adding changing column filter display mode to popover stops the exception being thrown on page load and moves it to when opening the Created column filter.

Screenshots or Videos (Optional)

image

Do you intend to try to help solve this bug with your own PR?

No, because I do not have time to dig into it

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions