Skip to content

md-slide-toggle does not emit event when thumb is dragged #1390

@danny-swimmer

Description

@danny-swimmer

Bug, feature request, or proposal:

Bug.

What is the expected behavior?

When the user changes state by dragging the thumb, a change event should be emitted.

What is the current behavior?

Change event is not emitted.

What are the steps to reproduce?

Please see this plunk: http://plnkr.co/edit/gMK2P5tCWyT4mszL08ih

Click on the switch to change the state. Note that we see a message indicating that a change event was received. Now drag the thumb from one side to the other. Note that the change event is not generated.

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

I believe we should follow the principle of "If the feature is there, it should work". If we're giving the user the capability of changing the state by dragging the thumb, then this action should take affect.
As an average user, I was surprised that it doesn't affect the state.

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

Angular 2.0 final.
@angular2-material/slide-toggle - v2.0.0-alpha.8-2 - Angular 2 Material Slide Toggle.
Server is running linux.
Browser is running on Windows 7, Chrome v53.0.2785.116 m

Is there anything else we should know?

No.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions