sghall / react-compound-slider

:black_medium_small_square: React Compound Slider | A small React slider with no opinion on markup or styles
https://react-compound-slider.netlify.com
MIT License
626 stars 80 forks source link

the name of Ticks is undefined #129

Closed chenzhutian closed 3 years ago

chenzhutian commented 4 years ago

Problem or feature description:

Since Ticks is an anonymous function, its name is undefined. Thus, isRCSComponent will return true if pass in a dom.

Steps to reproduce (for problems):

just put a

into slider

<Slider>
        <div>

        </div>
</Slider>

image

sghall commented 4 years ago

Thanks for reporting this! That should be fixed now in version 3.3.0 so try it out and let me know if there's any issues.

chenzhutian commented 3 years ago

awesome!