svelte-range-slider-pips icon indicating copy to clipboard operation
svelte-range-slider-pips copied to clipboard

Add value prop for convenience

Open zqianem opened this issue 4 years ago • 1 comments

Is a numeric value instead of a one-element array.

This is a bit of hack, admittedly. Addresses #12. Not sure how you wanted to update the docs for this.

zqianem avatar Dec 24 '20 18:12 zqianem

oh hey @zqianem !

This is kind of what I had running originally as a workaround (as I described in #12) but I was unable to achieve what you have here (I didn't think about two-way binding the values to each other)... I haven't had time to check it out and play with it yet but I can see the logic and it seems sound. I just worry about recursion or looping, or passing both props simultaneously.

I'll get around to testing it thoroughly and determine the impact it has in due course... but for now thanks a lot for the contribution !! 🙇

simeydotme avatar Dec 28 '20 14:12 simeydotme