I think I found an issue with one condition here:
|
if (child === undefined) return undefined; |
My render looks like this (psudo)
interface Data {
columns: string[];
optionalColumns?: string[];
}
[..]
return (
<ReactSortable ...>
{optionalColumns?.map(x => <Item x={x} />)}
{columns.map(x => <Item x={x} />)}
</ReactSortable>
)
It fails for me on line:
|
const { className: prevClassName } = child.props; |
Because the guard at line 121 does not handle this...
null === undefined // false
Shouldn't there be just child == null ? Double eq with null, which will handle nulls and undefineds?
I think I found an issue with one condition here:
react-sortablejs/src/react-sortable.tsx
Line 121 in 48e8780
My render looks like this (psudo)
It fails for me on line:
react-sortablejs/src/react-sortable.tsx
Line 124 in 48e8780
Because the guard at line 121 does not handle this...
null === undefined // falseShouldn't there be just
child == null? Double eq with null, which will handle nulls and undefineds?