Skip to content

Slide toggle - (change) event will be fired even when the slider has not change. #3526

Closed

Description

@skyfremen

Bug, feature request, or proposal:

This bug occurs intermittently. When toggling the slider quickly, the slider might not toggle however the (change) event will still fire.

https://plnkr.co/edit/zMzNTiSz6OmxbrJZSUnP?p=preview
slide-toggle_change_event

What is the expected behavior?

The event should not fire when the value is not changed.

What is the current behavior?

The event will fire even when the value is not changed.

What are the steps to reproduce?

  1. Using the Plunker provided toggle the slider quickly.
  2. The last 10 event calls will be displayed
  3. Occasionally, the slider will not toggle however the (change) event will still fire e.g. (true true) (false false)

What is the use-case or motivation for changing an existing behavior?

The event should not fire when the value is not changed.

Which versions of Angular, Material, OS, browsers are affected?

Tested on
Angular: 2.4.6
Material: 2.0.0-beta.2
OS: Windows
Browser: Chrome

Is there anything else we should know?

NA

Activity

  1. self-assigned this
    on Mar 9, 2017
  2. added a commit that references this issue on Mar 10, 2017
    c1ecaad
  3. added
    P3
    on Mar 10, 2017
  4. added a commit that references this issue on Mar 14, 2017
    5346353
  5. added a commit that references this issue on Apr 16, 2017
    ac476e4
  6. angular-automatic-lock-bot commented on Sep 8, 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.

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

Metadata

Metadata

Assignees

Labels

P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions