question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

filteredValue on Table default filters is not working

See original GitHub issue

Version

2.10.1

Environment

Mac OS X, Firefox 53.0

Reproduction link

https://vid.me/ECKy

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.


https://vid.me/ECKy

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
yesmeckcommented, May 16, 2017

filteredValue doesn’t mean default value, it works like input’s value, maybe we can introduce a new prop called defaultFilterValue 🤔

0reactions
lock[bot]commented, May 28, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found