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

Creating a draggable container without using findDOMNode() #21

Open
seiji619 opened this issue Dec 5, 2016 · 2 comments
Open

Creating a draggable container without using findDOMNode() #21

seiji619 opened this issue Dec 5, 2016 · 2 comments

Comments

@seiji619
Copy link

seiji619 commented Dec 5, 2016

Creating a dragula object without using findDOMNode() is not possible right now, if the container element is a custom React component. I understand Facebook will eventually deprecate this method, so it is an important feature to have.

@iamdanthedev
Copy link

		this.draggable = Dragula({
			isContainer: el => el.classList.contains('drag-container'),
		})

@jondoesntgit
Copy link

Now that findDOMNode is deprecated, the README should be updated.

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

3 participants