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

Detect change of "values" variable when compiled with "immutable" option.

Open eraviart opened this issue 4 years ago • 2 comments

eraviart avatar Mar 04 '21 00:03 eraviart

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?

simeydotme avatar Mar 10 '21 03:03 simeydotme

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 immutable compiler 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.

eraviart avatar Mar 10 '21 09:03 eraviart

oh wow thanks! I'll check this out as soon as I have a bit of time to spare!

simeydotme avatar Dec 07 '22 19:12 simeydotme