Skip to content

Commit 0edd814

Browse files
committed
fix: when set frozen disableDragSelect not work #3702
1 parent 4a018fd commit 0edd814

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vtable/src/event/listener/container-dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ export function bindContainerDomListener(eventManager: EventManager) {
785785
table.stateManager.updateInteractionState(InteractionState.grabing);
786786
const targetCol = table.getTargetColAtConsiderRightFrozen(selectX, considerFrozenX);
787787
const targetRow = table.getTargetRowAtConsiderBottomFrozen(selectY, considerFrozenY);
788-
if (isValid(targetCol) && isValid(targetRow)) {
788+
if (!table.options.select?.disableDragSelect && isValid(targetCol) && isValid(targetRow)) {
789789
table.stateManager.updateSelectPos(targetCol.col, targetRow.row, false, false, false, false);
790790
}
791791
});

0 commit comments

Comments
 (0)