Closed nosferatu500 closed 1 year ago
For anyone who face the same issue:
The issue will be fixed if wrap <CustomNode>
with <div>
Example:
<Dropdown
trigger={["contextMenu"]}
overlay={buildMenu(node)}
>
<div>
<CustomNode
node={node}
{...options}
isSelected={selected}
isDragging={selected && isDragging}
onClick={handleClick}
/>
</div>
</Dropdown>
Describe the bug Crash when trying to use
<Dropdown><CustomNode/></Dropdown>
(Dropdown from AntDesign)To Reproduce
Wrap
<CustomNode />
from this exampleClick on tree item
Error with unable to read
id
is occur at next line:Expected behavior Should render Dropdown without crashing app.