mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Scroll to row on grid ready
This commit is contained in:
@@ -77,12 +77,10 @@ export const PlayQueue = ({ type }: QueueProps) => {
|
||||
};
|
||||
|
||||
const handleGridReady = () => {
|
||||
if (tableConfig.followCurrentSong) {
|
||||
const { api } = gridRef?.current;
|
||||
const { api } = gridRef?.current;
|
||||
|
||||
const currentNode = api.getRowNode(current?.uniqueId);
|
||||
api.ensureNodeVisible(currentNode, 'middle');
|
||||
}
|
||||
const currentNode = api.getRowNode(current?.uniqueId);
|
||||
api.ensureNodeVisible(currentNode, 'middle');
|
||||
};
|
||||
|
||||
const handleColumnChange = () => {
|
||||
|
||||
Reference in New Issue
Block a user