react-timeline-range-slider icon indicating copy to clipboard operation
react-timeline-range-slider copied to clipboard

TypeError: n is not a function

Open perceivxl opened this issue 4 years ago • 3 comments

I keep getting a TypeError: n is not a function for some reason and I can't figure out why.

perceivxl avatar Jul 13 '21 16:07 perceivxl

Same here. Started happening lately.

wiltsu avatar Jul 16 '21 12:07 wiltsu

This happens when

selectedInterval={selectedInterval}
timelineInterval={[startTime, endTime]}

one of these props have invalid data.

wiltsu avatar Jul 29 '21 15:07 wiltsu

problem is onUpdateCallback has to be passed, it's not optional with the current API.

onUpdateCallback={() => null} this would fix the problem but I believe there should be a typescript version of this library to fix this kind of issues

keremciu avatar Oct 09 '21 22:10 keremciu