mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 11:07:32 +08:00
[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:
1
types/react-beautiful-dnd/index.d.ts
vendored
1
types/react-beautiful-dnd/index.d.ts
vendored
@@ -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