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
Dropdown and Multiselect: ERROR TypeError: value.trim is not a function #12525
Comments
Same problem here! Angular v15.1.1 |
same problem here! Angular v15.1.1 |
It is maybe Angular bug, see ngClass klass property |
Actually, the issue is that the overlay implementation is supplying an empty object ( So this is rather a bug that should be fixed on the PrimeNG side. |
I am experiencing the same issue after upgrade to 15.1 |
I think there is a problem with line
|
Same problem here. After update to primeng 15.1 with latest Angular version. |
Same here. Simple clicking on the dropdown throws error on console |
Reproduction on Stackblitz: https://stackblitz.com/edit/primeng-dropdown-demo-gbr32c?file=src/app/app.component.html |
Looks like the issue with Angular, like someone mentioned, I rolled back Angular to 15.1.0 and kept primeNG at 5.1.0 and all worked, so I think we need to test it once Angular 15.1.2 comes out perhaps. |
Nope, @olegkap , Angular 15 only simplified the setter named |
I figured that what fixed it for me after I rolled back some changes so I thought it might be Angular 15.1.1. |
it works with Version 15.1.0 and latest primeng (15.1.0) |
I don't think so, @yghandor, try my project: https://stackblitz.com/edit/pj-angular-ngclass-setting-bug?file=package.json |
Thanks a lot for the report! Fixed now. |
I feel that this is not fixed. I am running latest angular, 15.2.8 and the latest PrimeNG, 15.4.1. Before updating, my project worked fine. It seems like it is PrimeNG and NOT Angular that is still the cause for this. I wish I could pinpoint further but have tried to debug and handle the error without any success so far. |
My issue got resolved after updating the angular and primeng same version. I was installed angular 15.0.0 and primeng 15.0.0. Updated both the version to 15.2.1 it got resolved. |
|
has this been fixed at all? |
same issue here any fixes?! "@angular": "^15.0.0", UPDATE: The issue fixed by updating both 15.2.0 version |
Describe the bug
Upgraded this morning, upon clicking a dropdown or multiselect specifically this error occurs. Appears that the trim() function is being called upon something else then a string.
Environment
irrelevant
Reproducer
No response
Angular version
15.1.0
PrimeNG version
15.1.0
Build / Runtime
TypeScript
Language
TypeScript
Node version (for AoT issues node --version)
v18.12.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: