question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warnings on draggable=false

See original GitHub issue

https://github.com/brainhubeu/react-carousel/blob/bf8f7e76e9e0cac73e69c685a0df1e2483dbdb5f/src/components/CarouselItem.js#L46

image

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} ) }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
weignergcommented, Apr 14, 2020

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”,

0reactions
weignergcommented, Apr 14, 2020

This looks like a duplicate of this issue.

https://github.com/brainhubeu/react-carousel/issues/407

What was upgraded to .24 to fix it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

draggable - HTML: HyperText Markup Language | MDN
Warning : This attribute is enumerated and not Boolean. A value of true or false is mandatory, and shorthand like <img draggable> is...
Read more >
draggable={false} doesn't render correctly #2484 - GitHub
draggable can have the following values: true : the element can be dragged. false : the element cannot be dragged. This attribute is...
Read more >
css - Preventing an image from being draggable or selectable ...
user-drag only works in Safari. if you add draggable="false" to the image tag, it will stop being draggable. – WrksOnMyMachine. Mar 22 ...
Read more >
JavaScript Draggable Configuration - DevExtreme - DevExpress
Allows a user to drag clones of items instead of actual items. Type: Boolean. Default Value: false. container.
Read more >
drag and drop not working in ie7 and ie8 - TechNet - Microsoft
There are graphs in our server home page.I am supposed to drag and drop the graphs between divs.I used native html5 code to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found