mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Merge pull request #28526 from willmanduffy/ignore-container-clipping-react-beautiful-dnd
[react-beautiful-dnd] Add ignoreContainerClipping to DroppableProps
This commit is contained in:
Vendored
+1
@@ -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) => (
|
||||
|
||||
Reference in New Issue
Block a user