tb / ng2-nouislider

Angular2 noUiSlider directive
http://tb.github.io/ng2-nouislider/
MIT License
185 stars 114 forks source link

When using config input, slider persists min and max values #203

Open inorganik opened 5 years ago

inorganik commented 5 years ago

I noticed that you cannot change min and max inputs if you are also using the config input. In other words, if min/max values change at runtime, they instantly revert to what the slider started with

<nouislider [min]="min" [max]="max" [connect]="true" [step]="1" [formControl]="sliderCtrl" [config]="config"></nouislider>

Here is a stackblitz with repro steps: https://stackblitz.com/edit/angular-d7pkdz

A workaround is to just use other inputs instead of config.