Angular: Form / Input .valueChanges fires unexpectedly

Created on 15 Oct 2015  ·  3Comments  ·  Source: angular/angular

When binding to form inputs' valueChanges observable, methods attached to elements will trigger valueChanges to fire unexpectedly.

Reproduction: http://plnkr.co/edit/aBvtMSfBsSZcAH83GUjN?p=preview
Steps:

  • Type in input box, observe valueChanges observable logging values (expected).
  • Click button (which is outside of form) - observe observable logging values (unexpected)

cc @vsavkin

hours bufix

Most helpful comment

this issue still exists when using <input type='number'>

All 3 comments

This issue still exists when you use md-input

this issue still exists when using <input type='number'>

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings