Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

md-slider: Appearance not updated properly when bound value changes #1210

@maxee

Description

@maxee

I got some strange behavior with the md-slider component. If the bound value changes, the slider position doesn't get updated immediatly. Bizzarely, if I open the GoogleChrome-Dev-Tools and close them again, the value updates instantly.

Unlike the md-slider, the input field which is bound to the same value, updates properly.

<md-input-container>
  <label>Input</label>
  <input type="text" ng-change="myfunc()" ng-model="devices[key].Properties.MyProp" />
</md-input-container>

<md-slider ng-change="myfunc()" ng-model="devices[key].Properties.MyProp" min="0" max="100" aria-label="lbl"></md-slider>

Update:
It seems that the above issue occures if the bound value is not a number but a string.
However its the question why a string value works as well after some time or by opening the Dev-Console and closing it afterwards.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions