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

Expose isOver boolean in useSortable hook? #528

Closed
xHomu opened this issue Nov 28, 2021 · 2 comments · Fixed by #557
Closed

Expose isOver boolean in useSortable hook? #528

xHomu opened this issue Nov 28, 2021 · 2 comments · Fixed by #557
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@xHomu
Copy link

xHomu commented Nov 28, 2021

useSortable is a combination of useDroppable and useDraggable hooks. It would be nice to able to access the underlying isOver hook from useDroppable, in order to style the sortable container for more responsive design.

While we can do something similar to the example in Story - Sortable - Multiple Container by using useDroppable containers, that won't work if we're building a nested ui with useSortable.

@clauderic clauderic added enhancement New feature or request good first issue Good for newcomers labels Jan 5, 2022
@clauderic clauderic self-assigned this Jan 7, 2022
@clauderic
Copy link
Owner

This is now done and will be available in the next major release https://github.com/clauderic/dnd-kit/blob/master/packages/sortable/src/hooks/useSortable.ts#L160

@clauderic clauderic linked a pull request Jan 7, 2022 that will close this issue
@xHomu
Copy link
Author

xHomu commented Jan 7, 2022

You're the best, clauderic! I can't wait to show you what we been building on dnd-kit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants