-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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-cascadeSelect options: not change after new data in array of options #14698
Comments
Having the same issue after upgrading from 16.x to I'm not yet sure I totally the whole signals concept, but as far as I understand it: primeng/src/app/components/cascadeselect/cascadeselect.ts Lines 685 to 687 in 5dae6e5
Will only be called once. Ref: https://angular.io/guide/signals#computed-signals As a workaround I just re-render the cascade select after changing the options |
Hello! |
Just use |
Hi, I've just clicked the button and options are updated https://stackblitz.com/edit/1pszed-tuskv8?file=src%2Fapp%2Fdemo%2Fcascade-select-basic-demo.html,src%2Fapp%2Fdemo%2Fcascade-select-basic-demo.ts Could you please tell us how to reproduce the issue? |
@cetincakiroglu The code you linked uses Here you can find the bug reproduction with The bug can also reproduced with |
Fixed #14698 - p-cascadeSelect | options: not change after new data i…
Describe the bug
Hello everyone!
Earlier p-cascadeSelect options change after data was changed.
Also changed html, so in dropdown were new values.
This behavior was work in version "primeng": "15.4.15-lts",
example in stackblitz
Now, in version "primeng": "~17.3.2", this not working, unfortunately.
Any suggestions?
Thank you
Environment
angular app
Reproducer
https://stackblitz.com/edit/1pszed?file=src%2Fapp%2Fdemo%2Fcascade-select-basic-demo.html,package.json
Angular version
17.0.9
PrimeNG version
17.3.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.10.0
Browser(s)
Chrome 121.0.6167.86
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: