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.

Make react-draggable work with React Bootstrap Modal

See original GitHub issue

Is there a way to make react-draggable work React Bootstrap Modal?

I’m thinking at something like this (btw…this doesn’t work):

<Draggable handle=".modal-header">
    <Modal className="myClass" {...this.props} bsSize='small' title='Modal heading' animation={false}>
        <div className='modal-body'>
            <span>This is a test!</span>
        </div>
        <div className='modal-footer'>
            <Button>Close</Button>
        </div>
    </Modal>
</Draggable>

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
burgaloncommented, Mar 31, 2016

For anyone who might bump in this and would like to have a draggable react-bootstrap dialog, I made a GIST. https://gist.github.com/burgalon/870a68de68c5ed15c416fab63589d503

0reactions
eldamircommented, Apr 21, 2017

Thanks @burgalon , This may help me build a similar solution for react-modal (react-modal#45, react-modal#232)

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to make react-bootstrap modal draggable - Stack Overflow
Using react-draggable npm package, I was able to make contents draggable and droppable. But the back of whole dialog stays in place, and...
Read more >
Make a Modal Draggable with React Js / Bootstrap - YouTube
Learn how to make a React Js Modal draggable. This tutorial is very beginner-friendly and anyone can make it.
Read more >
Draggable React Bootstrap modal - gists · GitHub
import Draggable from 'react-draggable';.
Read more >
[Solved]-how to make react-bootstrap modal draggable-Reactjs
I think this solution is more simple and you could use the whole modal header to drag the modal. import { Modal, ModalHeader,...
Read more >
react modal dialog draggable - CodeSandbox
react modal dialog draggable. 0. Embed Fork Create Sandbox Sign in. Sandbox Info. react modal dialog draggable. 0. 4.3k. 43. zhuqlingzhuqling.
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