It looks like input type=‘password’ doesn’t fire change
or keyup
event on Windows. I checked it with following code:
console.log("ngAfterViewInit", this.passwordInput.nativeElement.tagName);
this.passwordInput.nativeElement.addEventListener(
"keyup",
(e) => { console.log("changed", this.passwordInput.nativeElement.value); });
As output I’m getting correct tag name INPUT but event never fires. It worked before but looks to be broken in one of the recent releases.
UPD: input.value
also returns empty string… It looks like the only workaround is to replace password with text input.