fix(grid): col drag (#1478)

Co-authored-by: sealday <sealday@gmail.com>
Reviewed-on: daoyoucloud/tachybase#1478
Reviewed-by: sealday <zhanglin@daoyoucloud.com>
Co-authored-by: bai.zixv <bai.zixv@foxmail.com>
Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
This commit is contained in:
bai.zixv 2024-08-23 13:20:23 +08:00 committed by sealday
parent a13cbfcc2c
commit 62d333d20b

View File

@ -78,7 +78,7 @@ const ColDivider = (props) => {
useDndMonitor({ useDndMonitor({
onDragStart(event) { onDragStart(event) {
if (!isDragging) { if (event.active.data.current.dividerRef?.current !== dividerRef.current) {
return; return;
} }
dragIdRef.current = event.active.id as string; dragIdRef.current = event.active.id as string;