Datatable date filter throws uncaught error when invalid date string is entered #1392
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
CodeSandbox Case (Bug Reports)
https://codesandbox.io/s/primevue-datatable-filter-date-bug-3u79j
Current behavior
When an invalid date string is inputted to the date filter box, and the filter is applied, an uncaught error is thrown. Sometimes, this error will cause the entire Datatable component to disappear from the page (Note: The Datatable does not disappear in the Code Sandbox, but the error is still thrown. The disappearing table can be observed on the datatable filter showcase page)
Expected behavior
The filter would handle the invalid input gracefully, or throw a more specific error
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Vue version: 3.1.5
PrimeVue version: 3.6.0
Browser: Chrome 92, Firefox 90
The text was updated successfully, but these errors were encountered: