Warnings on draggable=false
https://github.com/brainhubeu/react-carousel/blob/bf8f7e76e9e0cac73e69c685a0df1e2483dbdb5f/src/components/CarouselItem.js#L46

False is being passed rather than the function when draggable is set to false.
Would this code work?
{
this.props.isDraggingEnabled && ...(
onMouseDown={this.onMouseDown}
onTouchStart={this.onTouchStart}
)
}
Conditionally add the prop of a function rather than add a prop conditionally false or function.
@weignerg
Thanks for reporting this but I'm not able to reproduce this issue.

Could you provide an example code possible to paste into the demo/ docs and what's needed to perform In order to see these warnings?
Regarding improvements, the simplest will be if you open a PR.
These are warning that show up in development build. Production build does not show the warnings.
I am not yet familiar with how to go about making the change, testing it and submitting the pull request.
To reproduce, start a development application and navigate to a page with a carousel that has the draggable prop set to false.
@weignerg
Neither locally I can reproduce that.
I set draggable to false and I click the image and I see no warnings.
The only warnings are generated after the page reload.
I am using it in a typescript file.
Here is the version being used. "dependencies": { "@brainhubeu/react-carousel": "^1.13.19", "@types/brainhubeu__react-carousel": "^1.10.2",
@weignerg
I don't think TS matters here as TS throws errors at the compilation time and here is an error in the runtime.
This looks like a duplicate of this issue.
https://github.com/brainhubeu/react-carousel/issues/407
What was upgraded to .24 to fix it?
Issue not present in later version.
I upgraded to newest version of the react carousel.
npm i @brainhubeu/react-carousel "@brainhubeu/react-carousel": "^1.13.32",
npm i @types/brainhubeu__react-carousel -D "@types/brainhubeu__react-carousel": "^1.13.0",