leongersen / noUiSlider

noUiSlider is a lightweight, ARIA-accessible JavaScript range slider with multi-touch and keyboard support. It is fully GPU animated: no reflows, so it is fast; even on older devices. It also fits wonderfully in responsive designs and has no dependencies.
https://refreshless.com/nouislider/
MIT License
5.66k stars 659 forks source link

Exception on undefined callback #1175

Closed AAverin closed 2 years ago

AAverin commented 2 years ago

Somehow this line fails with Cannot read property 'call' of undefined https://github.com/leongersen/noUiSlider/blob/5344a23d4b46eba6c3bafa43e49a326a611bd620/src/nouislider.ts#L2423

Can Scoped_events in any case get an undefined value inside? I am rebinding events with on and off a lot due to state changes in react.

Unfortunately, no code to reproduce the problem exactly. Problem seems to happen mostly with set event.

leongersen commented 2 years ago

I haven't run into this before, I'll see if I can reproduce this.

Edit: I can't find a reproduction for this. Feel free to report back if you have an example!

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.