Merge pull request #28526 from willmanduffy/ignore-container-clipping-react-beautiful-dnd

[react-beautiful-dnd] Add ignoreContainerClipping to DroppableProps
This commit is contained in:
Armando Aguirre
2018-08-31 12:58:27 -07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
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>;
@@ -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) => (