password-strength icon indicating copy to clipboard operation
password-strength copied to clipboard

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

Open priti-shubh opened this issue 4 years ago • 1 comments

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.

priti-shubh avatar Apr 23 '21 05:04 priti-shubh

I will check that this weekend

AnthonyNahas avatar Jun 24 '21 14:06 AnthonyNahas