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

Password: ExpressionChangedAfterItHasBeenCheckedError on ToggleMask #16719

Closed
NiBurhe opened this issue Nov 9, 2024 · 1 comment
Closed

Password: ExpressionChangedAfterItHasBeenCheckedError on ToggleMask #16719

NiBurhe opened this issue Nov 9, 2024 · 1 comment
Assignees
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team
Milestone

Comments

@NiBurhe
Copy link

NiBurhe commented Nov 9, 2024

Describe the bug

I want to use p-password like this

<p-password [fluid]="true" [formControl]="control" [toggleMask]="true"...

This parts get rendered with an *ngIf condition. When the condition changed and the password get rendered I get this error

requests.js:1 ERROR RuntimeError: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'false'. Current value: 'true'. Expression location: _TextInputComponent component. Find more at https://angular.dev/errors/NG0100
at throwErrorIfNoChangesMode (core.mjs:10493:9)
at bindingUpdated (core.mjs:18604:9)
at bindingUpdated2 (core.mjs:18618:21)
at pureFunction2Internal (core.mjs:28422:10)
at Module.ɵɵpureFunction2 (core.mjs:28230:10)
at TextInputComponent_ng_template_1_Template (text-input.component.html:5:79)

The location in the text-input Component is the one where I use the p-password toggleMask

Environment

Windows 10

Reproducer

No response

Angular version

18.2.9

PrimeNG version

18.0.0-beta.3

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.18.0

Browser(s)

Chrome 130.0.6723.117

Steps to reproduce the behavior

No response

Expected behavior

No response

@NiBurhe NiBurhe added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 9, 2024
@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 19, 2024
@mertsincan mertsincan added this to the 18.0.0-rc.2 milestone Nov 19, 2024
@mertsincan mertsincan removed this from PrimeNG v18 Nov 20, 2024
@mehmetcetin01140 mehmetcetin01140 added Resolution: Cannot Replicate Issue could not be replicated by Core Team and removed Type: Bug Issue contains a bug related to a specific component. Something about the component is not working labels Nov 25, 2024
@mehmetcetin01140 mehmetcetin01140 closed this as completed by moving to Done in PrimeNG v18 Nov 25, 2024
Copy link

We're unable to replicate your issue, if you are able to create a reproducer by using PrimeNG Issue Template or add details please edit this issue. This issue will be closed if no activities in 20 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team
Projects
Status: Done
Development

No branches or pull requests

3 participants