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

an error “Cannot read property 'isFirstChange' of undefined at MatPasswordStrengthComponent. #321

Closed
wants to merge 126 commits into from

Conversation

priti-shubh
Copy link

Hi Anthony,
I am getting an error “Cannot read property 'isFirstChange' of undefined
at MatPasswordStrengthComponent.ngOnChanges (angular-material-extensions-password-strength.js:454)” at page load . I debug it and find that “changes.password” is undefined . Please look it into image .

My suggestion is please replace code “if ((changes.externalError && changes.externalError.firstChange) || changes.password.isFirstChange()) {
return;
}” by “if ((changes.externalError && changes.externalError.firstChange) || changes.password && changes.password.isFirstChange()) {
return;
}” to fixed this bug.

LakMoore and others added 30 commits May 8, 2020 11:38
with an svgIcon attribute, users have the option of using Material Icon ligature font (original design) or SVG Icon Sets.
add custom mat-icon in mat-password-strenght-info
- deleted json-utils.ts which is gone upstream angular/angular-cli#18875
- deleted obsolete exports from ast-utils.ts
- upgraded to schematics 11.1.2
- fixed project name reading logic which prefiously produced NPE

Tested on @angular/[email protected] and npm install --save-dev @angular/[email protected]
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.

8 participants