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

fix(primeng/p-password): incorrect class assignment for true value of toggleMask in the password component. #11416

Conversation

volvachev
Copy link
Contributor

The problem appeared during fix of the bug #10716 (running detectChanges in pInputText). Setter has been ran by detector without running doCheck inside ngClass.

To avoid the problem, either do not run detectChanges inside pInputText or do not use methods inside the template, for example: replace them with pipes, or call the detectChanges method inside ngAfterViewInit(p-password) as well.

To solve the problem, I have decided to use pipes because this is the best solution from my point of view.
But if you want to replace the detectChanges call, I will do it

Defect Fixes
#11356, #11408.

…of `toggleMask` in the password component.

The problem appeared during fix of the bug primefaces#10716 (running `detectChanges` in `pInputText`). Setter has been ran by detector without running doCheck inside `ngClass`.

Fixes primefaces#11356, primefaces#11408.
@volvachev volvachev force-pushed the fix-password-input-not-valid-class-render branch from 33bd4f0 to 12f6a81 Compare June 2, 2022 06:08
@cetincakiroglu cetincakiroglu self-requested a review August 9, 2022 07:52
@cetincakiroglu cetincakiroglu added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Aug 9, 2022
@JuanSeBestia
Copy link

Thanks @volvachev

Please, I need this fix <3

@cetincakiroglu cetincakiroglu added this to the 14.1.2 milestone Sep 16, 2022
@cetincakiroglu cetincakiroglu modified the milestones: 14.1.2, 14.1.3 Sep 28, 2022
@mertsincan mertsincan merged commit ce1ad29 into primefaces:master Nov 8, 2022
@mertsincan
Copy link
Member

Thanks a lot for your contribution, @volvachev ;)

@mertsincan mertsincan removed the Status: Pending Review Issue or pull request is being reviewed by Core Team label Nov 8, 2022
@mertsincan mertsincan removed this from the 14.2.0 milestone Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect class assignment for true value of toggleMask in the password component.
4 participants