filteredValue on Table default filters is not working
See original GitHub issueVersion
2.10.1
Environment
Mac OS X, Firefox 53.0
Reproduction link
Steps to reproduce
Use a column in table with default filtered Value and try to use that filter.
{
title: "Environment",
key: "env",
dataIndex: "env",
width: 100,
filters: [
{
text: "prod",
value: "prod"
},
{
text: "stage",
value: "stage"
},
{
text: "test",
value: "test"
}
],
filteredValue: ["test", ]
},
What is expected?
I should be able to override the default values from UI.
What is actually happening?
Whenever I update my filters it goes back to default filteredValue, on overriding it shouldn’t do that or I should have a flag to define when to do so.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How can I set default sorter and filters on antd table ...
When I used ` filteredValue` prop then I am not able to change the value. I have answered this question and given a...
Read more >Filters | TanStack Table Docs
By default, filtering is done for all rows (max depth of 100), no matter if they are root level parent rows or the...
Read more >DataTable Filter - PrimeFaces Showcase
DataTable Filter. Filtering updates the data based on the constraints. ... </h:form> </div> <div class="card"> <h5>Default Filter</h5> <h:form> <p:dataTable ...
Read more >Table - Ant Design
Use filters to generate filter menu in columns, onFilter to determine filtered result, and filterMultiple to indicate whether it's multiple or single selection....
Read more >Applying a default filter on a table - - BigProf Software
Let's first explain briefly how filters work in AppGini. A filter has five ... Apply a default filter only if no filter is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
filteredValue
doesn’t mean default value, it works likeinput
’svalue
, maybe we can introduce a new prop calleddefaultFilterValue
🤔This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.