mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix ROWY-700
This commit is contained in:
@@ -176,9 +176,16 @@ export default function Table({
|
||||
(event: React.UIEvent<HTMLDivElement>) => {
|
||||
// Select corresponding header cell when scrolled to prevent jumping
|
||||
dataGridRef?.current?.selectCell({
|
||||
idx: selectedColumnIndex || 0,
|
||||
idx:
|
||||
selectedColumnIndex > -1 ? selectedColumnIndex : columns.length - 1,
|
||||
rowIdx: -1,
|
||||
});
|
||||
// console.log(
|
||||
// "scroll",
|
||||
// dataGridRef?.current,
|
||||
// selectedColumnIndex,
|
||||
// columns.length
|
||||
// );
|
||||
|
||||
const target = event.target as HTMLDivElement;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user