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

Angular 4 support #5

Open
BearandYoon opened this issue Feb 22, 2018 · 0 comments
Open

Angular 4 support #5

BearandYoon opened this issue Feb 22, 2018 · 0 comments

Comments

@BearandYoon
Copy link

BearandYoon commented Feb 22, 2018

Hello
I have autofill-event issue on iPhone/Chrome in my Angular 4 project.
I have added the autofill-event.js in my project and in my login page I can catch changeEvent when fill out email/pass input field but I can't get input value(autofilled email).

This is my code snippet.

<form [formGroup]="signInForm" (submit)="onSignIn()" (change)="onChange($event)">
          <div class="form-content">
            <div class="form-group">
              <input type="email" class="form-control input-underline input-lg" formControlName="email" id="email" placeholder="Email Address">
              <app-control-messages [control]="signInForm.controls.email"></app-control-messages>
            </div>
            <div class="form-group">
              <input type="password" class="form-control input-underline input-lg" formControlName="password" id="password" placeholder="Password">
              <app-control-messages [control]="signInForm.controls.password"></app-control-messages>
            </div>
          </div>
          <div class="action-container">
            <div class="btn-login-container">
              <button class="btn bordered-btn" type="submit"> Login </button>
            </div>
          </div>
        </form>
  onChange(event) {
    alert(this.signInForm.value.email);// I can see empty alert on my iPhone/Chrome.
  }

It doesn't work on chrome browser on iPhone.

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