Skip to content

Form / Input .valueChanges fires unexpectedly  #4768

Closed

Description

@robwormald

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

Activity

  1. Gallopaway commented on Nov 22, 2016

    @Gallopaway

    This issue still exists when you use md-input

  2. dgroh commented on Feb 6, 2018

    @dgroh

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

  3. angular-automatic-lock-bot commented on Sep 13, 2019

    @angular-automatic-lock-bot

    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.

  4. locked and limited conversation to collaborators on Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions