unmount during drag (#2168)
This commit is contained in:
parent
095e7d3a8c
commit
29d87a88f0
|
|
@ -176,6 +176,10 @@ const DraggableComponent = (props: DraggableComponentProps) => {
|
|||
|
||||
const className = `${classNameForTesting}`;
|
||||
|
||||
const shouldRenderComponent = !(
|
||||
selectedWidget === props.widgetId && isDragging
|
||||
);
|
||||
|
||||
return (
|
||||
<DraggableWrapper
|
||||
className={className}
|
||||
|
|
@ -184,7 +188,7 @@ const DraggableComponent = (props: DraggableComponentProps) => {
|
|||
onClick={handleClick}
|
||||
style={style}
|
||||
>
|
||||
{props.children}
|
||||
{shouldRenderComponent && props.children}
|
||||
{widgetBoundaries}
|
||||
</DraggableWrapper>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user