removed appending sortable to parent component behavior

This commit is contained in:
Rafael Wendel
2020-12-22 09:10:32 -03:00
parent 9e01b2d30f
commit 163fb6fef5

View File

@@ -29,12 +29,6 @@ export function SortableContainer({ disabled, containerComponent, containerProps
} else {
// Enabled state:
// EXPERIMENTAL: having the helper attached to document body eliminates mispositioning
// - use container element as a default helper element
// wrapperProps.helperContainer = wrap(wrapperProps.helperContainer, helperContainer =>
// isFunction(helperContainer) ? helperContainer(containerRef.current) : containerRef.current
// );
// - hook drag start/end events
wrapperProps.updateBeforeSortStart = wrap(wrapperProps.updateBeforeSortStart, (updateBeforeSortStart, ...args) => {
setIsDragging(true);