Merge pull request #21837 from daphnesmit/patch-3

[react-beautiful-dnd] Added  missing prop disableInteractiveElementBlocking
This commit is contained in:
Armando Aguirre
2017-11-29 18:17:47 -08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -99,6 +99,7 @@ export interface DraggableProps {
draggableId: DroppableId;
type?: TypeId;
isDragDisabled?: boolean;
disableInteractiveElementBlocking?: boolean;
children(provided: DraggableProvided, snapshot: DraggableStateSnapshot): React.ReactElement<any>;
}
@@ -73,7 +73,7 @@ class App extends React.Component<{}, AppState> {
style={getListStyle(snapshot.isDraggingOver)}
>
{this.state.items.map(item => (
<Draggable key={item.id} draggableId={item.id}>
<Draggable key={item.id} draggableId={item.id} disableInteractiveElementBlocking={true}>
{(provided, snapshot) => (
<div>
<div