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

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

Open
inorganik opened this issue Feb 5, 2019 · 0 comments
Open

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

inorganik opened this issue Feb 5, 2019 · 0 comments

Comments

@inorganik
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant