I've implemented a kanban board with react-beautiful-dnd
. It works the way I want.
I would like to be able to use this board inside a div
container that has overflow: hidden
. However, doing so prevents from dragging Cards in columns that are outside of the viewport, the screen does not scroll horizontally to the right anymore.
I'm simplifying the issue, the reason I need this is because I'm using a Layout component which content
component is a div with overflow: hidden
.
Here is a codesandbox that demo the issue
Basically, this works, I can drag-drop Card to the right and it will scroll horizontally :
<div style={{ overflow: 'unset}} >
<Kanban />
<div>
This does not:
<div style={{ overflow: 'hidden }} >
<Kanban />
<div>
Maybe there is a way to reset the first div as such?:
<div style={{ overflow: 'hidden }} >
<div style={{ }}> // something here to reset container div?
<Kanban />
</div>
<div>