Skip to content

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

@danny-swimmer

Description

@danny-swimmer

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions