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

Cannot read property 'isFirstChange' of undefined at MatPasswordStrengthComponent.ngOnChanges #320

Open
priti-shubh opened this issue Apr 23, 2021 · 1 comment

Comments

@priti-shubh
Copy link

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request

OS and Version?

Versions

Repro steps

The log given by the failure

Desired functionality

Mention any other details that might be useful

@priti-shubh
Copy link
Author

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.

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

No branches or pull requests

1 participant