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

md-slider thumb position does not move when value is updated by external data source #1386

Closed
danny-swimmer opened this issue Sep 30, 2016 · 3 comments · Fixed by #1610
Closed
Assignees

Comments

@danny-swimmer
Copy link

Bug, feature request, or proposal:

Bug

What is the expected behavior?

The slider's thumb position should be updated when an external data source updates the value of the md-slider.

What is the current behavior?

The slider's thumb position is not updated when an external data source updates the value of the md-slider.

What are the steps to reproduce?

Please refer to this plunk: http://plnkr.co/edit/sZHhzGHu5vg2lyj7B0On
I'm using property binding to link the AppComponent class's data property into a target element property (the md-slider).
Note that when an external data source (simulated in the plunk by an input field) changes the component's "level" property, the value of the md-slider (shown to the right of the slider) DOES update.
However the graphical md-slider thumb element DOES NOT update its position.

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

It's a bug.

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

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

Is there anything else we should know?

@danny-swimmer danny-swimmer changed the title md-slider thumb position is not updated by external data source md-slider thumb position does not move when value is updated by external data source Oct 4, 2016
@danny-swimmer
Copy link
Author

Hi @jelbourn,
Please forgive me if my assumptions are incorrect.
I noticed that this issue was marked as fixed in release 2.0.0-alpha.10.
I assume that this release now becomes the default for newly-created plunks, such as this one I just made to test the fix:
http://plnkr.co/edit/IojSZiv89EVPotxUr1u0
However the behaviour has not changed - the slider still doesn't move when the value binding changes.

@jelbourn
Copy link
Member

@danny-swimmer I don't believe the plunker has been updated yet.

@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