svelte-range-slider-pips
svelte-range-slider-pips copied to clipboard
Detect change of "values" variable when compiled with "immutable" option.
hi @eraviart , are you able to provide a REPL of before/after to demonstrate the issue it resolves, so I know what this is doing exactly and can test accordingly?
Hi @simeydotme ,
I was not able to reproduce this bug with a Svelte REPL, so I made a minimal Sapper project, containing only the slider: https://github.com/eraviart/svelte-range-slider-pips-immutable-bug.
There are 3 commits in this sample project:
- In the first commit, the slider works.
- In the second commit, the
immutablecompiler option of Svelte is set and the range slider is not scrollable any more. - In the third commit, svelte-range-slider-pips-immutable is replaced with my fork containing the bug fix and slider is now scrollable again.
I hope this helps.
oh wow thanks! I'll check this out as soon as I have a bit of time to spare!