[react-beautiful-dnd] Add ignoreContainerClipping to DroppableProps

* This prop was added in https://github.com/atlassian/react-beautiful-dnd/pull/148
  but was never updated here.
This commit is contained in:
Will Duffy
2018-08-30 07:23:11 -04:00
parent 8f7b983d50
commit c8d12319ef
2 changed files with 2 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ export interface DroppableStateSnapshot {
export interface DroppableProps {
droppableId: DroppableId;
type?: TypeId;
ignoreContainerClipping?: boolean;
isDropDisabled?: boolean;
direction?: 'vertical' | 'horizontal';
children(provided: DroppableProvided, snapshot: DroppableStateSnapshot): React.ReactElement<any>;

View File

@@ -73,7 +73,7 @@ class App extends React.Component<{}, AppState> {
render() {
return (
<DragDropContext onDragStart={this.onDragStart} onDragUpdate={this.onDragUpdate} onDragEnd={this.onDragEnd}>
<Droppable droppableId="droppable">
<Droppable droppableId="droppable" ignoreContainerClipping={false}>
{(provided, snapshot) => (
<div ref={provided.innerRef} style={getListStyle(snapshot.isDraggingOver)} {...provided.droppableProps}>
{this.state.items.map((item, index) => (