Closed artygrand closed 4 years ago
After I updated dependencies, slider was crushed with TypeError: Cannot read property 'type' of null /Slider/Slider.tsx:40 const type = (item as RCSComponent).type;
if withTicks is false
withTicks
false
{withTicks && <Ticks count={tickCount}> {({ ticks }) => ( <div className="ticks"> {ticks.map(tick => ( <Tick key={tick.id} tick={tick} count={ticks.length} /> ))} </div> )} </Ticks>}
If I render variable with null instead of component, error is also displayed
null
React-Compound-Slider: 3.1.0 from npm
Thanks for reporting. I'll get a fix out for this. Looks like https://github.com/sghall/react-compound-slider/pull/127
Released version 3.1.1 which should fix this issue. Please let me know if it doesn't.
Problem or feature description:
After I updated dependencies, slider was crushed with TypeError: Cannot read property 'type' of null /Slider/Slider.tsx:40 const type = (item as RCSComponent).type;
Steps to reproduce (for problems):
if
withTicks
isfalse
If I render variable with
null
instead of component, error is also displayedReact-Compound-Slider: 3.1.0 from npm