inputSwitch dynamic disabled cause ExpressionChangedAfterItHasBeenCheckedError #14126
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
If I use a variable to set disabled in InputSwitch
https://primeng.org/inputswitch
and change the value from false to true in console it show
ExpressionChangedAfterItHasBeenCheckedError
Environment
OS: Windows 10
Angular 16.2
Primeng: 16.7.2
But it happens also in
primeng 14.2.3
angular 14.2
And I suppose in primeng 15 also.
Reproducer
https://stackblitz.com/edit/ich5kf-cksjho?file=src%2Fapp%2Fdemo%2Finput-switch-disabled-demo.html
Angular version
16.2
PrimeNG version
16.7.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.20.2
Browser(s)
Chrome 119.0.6045.159
Steps to reproduce the behavior
Expected behavior
No error print in the console
The text was updated successfully, but these errors were encountered: