Datagrid Header Filters don't display restored values (Only Text Type) #16826
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
feature: Filtering on header
Related to the header filtering (Pro) feature
support: pro standard
Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Steps:
Open this link to live example: https://codesandbox.io/embed/xrpvsl?module=/src/Demo.tsx&fontsize=12
Add the
headerFilters
prop to enable themCreate a text filter under "Trader Name" & another boolean filter
Save the current view
Clear the current filters
Restore the view by clicking on the "Custom View" option
Observe that the "Trader Name" field is still empty
Observe that the boolean field has been populated correctly
Observe that after clicking the filter icon to open the filter box, the text field has been applied to the modal okay, just is not replicated in the header filters.
Current behavior
Header filters are not kept in sync with filterModel on restore
Expected behavior
Header filters should be kept in sync with filter model
Context
No response
Your environment
N/A - Was able to replicate on the sandbox linked from the docs as above
npx @mui/envinfo
Search keywords: header filters state restore
Order ID: 87194
The text was updated successfully, but these errors were encountered: