components icon indicating copy to clipboard operation
components copied to clipboard

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

Open danny-swimmer opened this issue 10 years ago • 3 comments

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.

danny-swimmer avatar Sep 30 '16 19:09 danny-swimmer

I don't know what I'm missing but this is still happening to me in production. On my machine, it works fine, but when I build the project with angular-cli it stops working. I'm using 2.0.0-beta.5

yo-epicdavid avatar May 26 '17 08:05 yo-epicdavid

Never mind this solved it. Thank you @iliketomatoes!

yo-epicdavid avatar May 26 '17 12:05 yo-epicdavid

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.