Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider doesn't work with (input) event #2296

Closed
eparini opened this issue Dec 20, 2016 · 3 comments · Fixed by #2325
Closed

Slider doesn't work with (input) event #2296

eparini opened this issue Dec 20, 2016 · 3 comments · Fixed by #2325
Assignees

Comments

@eparini
Copy link

eparini commented Dec 20, 2016

Bug, feature request, or proposal:

Given a simple slider, it does not call "myFunction" subscribed to (input) event :
<md-slider #mySlider min="0" max="100" (input)="myFunction(mySlider.value)">

Then if I subscribe to (change) event it works and it triggers the function at the end of sliding:
<md-slider #mySlider min="0" max="100" (change)="myFunction(mySlider.value)">

The problem is that I need to call "myFunction" each step of slider and this is possible only subscribing to (input) event.

What is the expected behavior?

The expected behaviour should be that if I subscribe "myFunction" to (input) event, "myFunction" get called each step.

What is the current behavior?

At the moment "myFunction" is not triggered

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

"@angular/material": "2.0.0-alpha.10",

@devversion devversion self-assigned this Dec 21, 2016
@devversion
Copy link
Member

The input event is not developed yet. Working on a PR for this.

devversion added a commit to devversion/material2 that referenced this issue Dec 21, 2016
* Adds an input event output, which fires each time the thumb changes its position.
  Made similar to the native range element `input` event dispatching.

Closes angular#2296
@alexjlockwood
Copy link

+1 this would be great!

devversion added a commit to devversion/material2 that referenced this issue Dec 28, 2016
* Adds an input event output, which fires each time the thumb changes its position.
  Made similar to the native range element `input` event dispatching.

Closes angular#2296
@kara kara closed this as completed in #2325 Jan 6, 2017
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants