password-strength
password-strength copied to clipboard
an error “Cannot read property 'isFirstChange' of undefined at MatPasswordStrengthComponent.
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.
I will check that this weekend