Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable: filterDisplay menu #5119

Closed
rfdt opened this issue Oct 19, 2023 · 1 comment
Closed

DataTable: filterDisplay menu #5119

rfdt opened this issue Oct 19, 2023 · 1 comment
Labels
Resolution: Invalid Issue or pull request is not valid in the latest version

Comments

@rfdt
Copy link

rfdt commented Oct 19, 2023

Describe the bug

image When I try to set the filterDisplays in the menu. That field for entering a filter throws out an error in reading the object. But the filter field is just a string. When I set the filters object as I read in another report, I get an additional field that I don’t need.

const [filters] = useState({
title: {

        value: "", matchMode: FilterMatchMode.STARTS_WITH
    },
    hardware_type: {value: null, matchMode: FilterMatchMode.CONTAINS}
});

const [filters] = useState({
title: {
operator: FilterOperator.AND,
constraints: [ {value: "", matchMode: FilterMatchMode.STARTS_WITH}]

    },
    hardware_type: {value: null, matchMode: FilterMatchMode.CONTAINS}
});

image
image

Reproducer

https://stackblitz.com/edit/vitejs-vite-pdxs5b?file=src%2FApp.tsx

PrimeReact version

^9.6.2

React version

18.x

Language

ES6

Build / Runtime

Create React App (CRA)

Browser(s)

Chrome 90

Steps to reproduce the behavior

Open filter menu for hostname and type into InputText

Expected behavior

No response

@rfdt rfdt added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 19, 2023
@melloware
Copy link
Member

@rfdt I updated your example to 10.0.5 and its working fine. The bug was fixed in 10.0.0:
Try this: https://stackblitz.com/edit/vitejs-vite-cvylc9

@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
@melloware melloware added Resolution: Invalid Issue or pull request is not valid in the latest version and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Invalid Issue or pull request is not valid in the latest version
Projects
None yet
Development

No branches or pull requests

2 participants