Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I disable the "collapse" functionality in dragging #27

Open
bfang711 opened this issue Apr 20, 2018 · 1 comment
Open

How can I disable the "collapse" functionality in dragging #27

bfang711 opened this issue Apr 20, 2018 · 1 comment

Comments

@bfang711
Copy link

bfang711 commented Apr 20, 2018

I would like to do dragging without collapse. However control the collapse/expand within the item inside the list. To do the collapse/expand, I think I can embed react-bootstrap Panel into each of the list item, and manually expand/collapse each of the item. But can you let me know how to prevent react-draggable-list from collapse when dragging/expand when releasing?

I think I got part of the answer. getDragHeight = null will prevent it from collapsing when dragging. Now my question is that is it possible to change item height by expand/collapse (items) manually?
thank you.

@Macil
Copy link
Collaborator

Macil commented Aug 24, 2018

What control over the collapse do you want to control that react-draggable-list and a custom getDragHeight method doesn't give you enough for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants