From 68243be3827b9e6aa9ebed7d45b49609d7f7500f Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Wed, 3 Apr 2024 15:35:11 +0200 Subject: [PATCH] fix(List): fix `SimpleContainer` dimensions handle (#1479) --- src/components/List/List.tsx | 1 - .../List/components/SimpleContainer.tsx | 17 +---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/components/List/List.tsx b/src/components/List/List.tsx index 6fa0f480be..30f9a269ae 100644 --- a/src/components/List/List.tsx +++ b/src/components/List/List.tsx @@ -367,7 +367,6 @@ export class List extends React.Component, ListState {items.map((_item, index) => { return ( diff --git a/src/components/List/components/SimpleContainer.tsx b/src/components/List/components/SimpleContainer.tsx index 293227dbe1..2d39243b25 100644 --- a/src/components/List/components/SimpleContainer.tsx +++ b/src/components/List/components/SimpleContainer.tsx @@ -8,15 +8,12 @@ import type {ListItem} from './ListItem'; export type SimpleContainerProps = React.PropsWithChildren<{ itemCount: number; provided?: DroppableProvided; - sortable?: boolean; }>; type RefsList = Record>; export type SimpleContainerState = { refsList: RefsList; - minWidth?: number; - minHeight?: number; }; function getRefs(count: number) { @@ -50,24 +47,12 @@ export class SimpleContainer extends React.Component React.cloneElement(child as React.ReactElement, {ref: this.state.refsList[index]}), ); - return ( -
- {children} -
- ); + return
{children}
; } scrollToItem(index: number) {