KevinVandy/material-react-table

Filters - Clearing autocomplete filter using "Clear Filter" rather than the 'X' button doesn't clear the selected value.

comic0guy opened this issue · 0 comments

material-react-table version

v2.12.1

react & react-dom versions

React-Dom v17

Describe the bug and the steps to reproduce it

  1. Go to this example: https://www.material-react-table.com/docs/guides/column-filtering#faceted-values-for-filter-variants
  2. On the "Name" field select "John Doe"
  3. Select the ellipsis -> then select "Clear Filter"
  4. Note the "John Doe" value is not cleared.
  5. Note the table has cleared the filter and all rows are now visible.

The selected value in the autocomplete should be cleared regardless if a user clears via the 'X' button or the "clear filter" option.

Minimal, Reproducible Example - (Optional, but Recommended)

https://www.material-react-table.com/docs/guides/column-filtering#faceted-values-for-filter-variants

Screenshots or Videos (Optional)

No response

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

No, because I do not know how

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.