Skip to content

Commit 0a59927

Browse files
committed
Fix dragStrategy default and remove debug proxy style
1 parent 4860eb2 commit 0a59927

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

examples/src/pages/tests/table/dnd/dnd-source-target.page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ function makeRenderDragProxy(getItems: () => Item[]) {
275275
proxyRef={ref}
276276
style={{
277277
position: 'fixed',
278-
background: 'red',
279278
top: initialRect.top + dy,
280279
left: initialRect.left + dx,
281280
width: initialRect.width,

source/src/components/InfiniteTable/components/draggable/DragList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ export const DragList = (props: DragListProps) => {
794794
};
795795
scrollContainer?.addEventListener('scroll', onContainerScroll);
796796

797-
const dragStrategy = props.dragStrategy ?? 'proxy';
797+
const dragStrategy = props.dragStrategy ?? 'inline';
798798
const useProxy = dragStrategy === 'proxy' && !props.renderDragProxy;
799799
const useRenderProxy =
800800
dragStrategy === 'proxy' && !!props.renderDragProxy;

0 commit comments

Comments
 (0)