You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So with the example provided, I tried to add conditional clauses on which color is passed to the [dt] attribute depending on another value. This value apparently is only evaluated once on render, the color doesn't change. See example provided and click the button to change the value. The reproducer defines customSwitch which would be based on amberSwitch from provided example in docs.
workaround right now would be to provide multiple customSwitch objects and pass them to [dt] conditionally
See above reproducer and click on the button to change the value of the colorToggle. when changed, then value of customSwitch should change, and value passed to [dt] input should change, but the component does not reevaluate it.
Expected behavior
Either this is intended behavior (which should be documented) or the value of customSwitch should be reevaluated if changed.
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm following the instructions from https://v18.primeng.org/theming#scopedtokens
So with the example provided, I tried to add conditional clauses on which color is passed to the
[dt]
attribute depending on another value. This value apparently is only evaluated once on render, the color doesn't change. See example provided and click the button to change the value. The reproducer definescustomSwitch
which would be based onamberSwitch
from provided example in docs.workaround right now would be to provide multiple
customSwitch
objects and pass them to[dt]
conditionallyEnvironment
windows with node 22.8.0
reproducer runs on node 18.20.x
Reproducer
https://stackblitz.com/edit/stackblitz-starters-ej7svz?file=foo%2Fsrc%2Fapp%2Fapp.component.ts
Angular version
18.2.6
PrimeNG version
18.0.0-beta.3
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
v22.8.0
Browser(s)
Chromium 129.0.6668.100
Steps to reproduce the behavior
See above reproducer and click on the button to change the value of the colorToggle. when changed, then value of
customSwitch
should change, and value passed to[dt]
input should change, but the component does not reevaluate it.Expected behavior
Either this is intended behavior (which should be documented) or the value of
customSwitch
should be reevaluated if changed.The text was updated successfully, but these errors were encountered: