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

Closed
igore13 opened this issue Sep 27, 2024 · 2 comments
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@igore13
Copy link
Contributor

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
Contributor Author

igore13 commented Sep 27, 2024

I have send a PR : #16453

@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 18, 2024
@mertsincan mertsincan added this to the 17.18.13 milestone Nov 18, 2024
@mertsincan
Copy link
Member

Fixed in #16453

@mertsincan mertsincan moved this to Done in PrimeNG Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
Status: Done
Development

No branches or pull requests

2 participants