@@ -41,8 +41,6 @@ export interface TableProps<K = string> {
4141 activeRange : ActiveRange
4242 /** Sets the state of the selected cell or cells in the table. */
4343 setActiveRange ?: ( range : ActiveRange ) => void
44- /** The ID of the column that is being edited by another (external) UI. */
45- extActiveColumn ?: K
4644 /** Gets the value in a cell. */
4745 getCellValue ( row : number , column : Column < K > ) : unknown
4846 /** Sets the value of the given cell. */
@@ -182,15 +180,6 @@ export default function Table<K = string>(props: TableProps<K>) {
182180 }
183181 } )
184182
185- // Scroll to the externally active column
186- const extActiveColumnIdx = createMemo ( ( ) =>
187- props . columns . findIndex ( c => c . id === props . extActiveColumn ) ,
188- )
189- createEffect ( ( ) => {
190- const colIndex = extActiveColumnIdx ( )
191- if ( colIndex >= 0 ) scrollToCell ( undefined , colIndex )
192- } )
193-
194183 // Watch scroll position
195184 const viewport = watchViewport ( ( ) => tableEl ! )
196185
@@ -576,7 +565,6 @@ export default function Table<K = string>(props: TableProps<K>) {
576565 1 ,
577566 )
578567 }
579- extActiveColumn = { props . extActiveColumn }
580568 />
581569 { /* Add column button */ }
582570 < Show when = { props . columnsEditable } >
@@ -647,7 +635,6 @@ export default function Table<K = string>(props: TableProps<K>) {
647635 onMouseContextDown = { onCellContextDown }
648636 onContextMenu = { onContextMenu }
649637 onEditCell = { editCell }
650- extActiveColumn = { props . extActiveColumn }
651638 />
652639 ) }
653640 </ For >
0 commit comments