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

p-table & p-columnfilter - Error on console and matchmode not show correctly when using [filters] #16452

Open
igore13 opened this issue Sep 27, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@igore13
Copy link

igore13 commented Sep 27, 2024

Describe the bug

Hello,

I get this error on the console : ERROR TypeError: ctx_r0.filterConstraint is undefined

you can reproduce that with exemple table (filter basic) in documentation PrimeNG V17.

If you remove a code with p-column-filter template, no error show.

Environment

Windows 10 Pro

Reproducer

https://stackblitz.com/edit/cpsrep-nmczjk?file=src%2Fapp%2Fdemo%2Ftable-filter-row-demo.html,src%2Fapp%2Fdemo%2Ftable-filter-row-demo.ts

Angular version

18.1.4

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.11.1

Browser(s)

Firefox

Steps to reproduce the behavior

1 => Code
Add in HTML p-table :

[filters]="filters"

And in TS :

public filters: {[key: string]: FilterMetaData} = {}
constructor() {
setTimeout(() => {
this.filters = {
name: { value: 'Test', matchMode: 'Equals' }
}
}, 5000)
}
2 => Wait 5 seconds and look other filters matchmode

Expected behavior

No response

@igore13 igore13 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 27, 2024
@igore13
Copy link
Author

igore13 commented Sep 27, 2024

I have send a PR : #16453

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant