Small fix
parent
2b75548c28
commit
41799deba8
File diff suppressed because one or more lines are too long
|
|
@ -10,7 +10,7 @@ FocusService.prototype.setFocusedCell = function (params) {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getRowNodeAtPixel = <TData = any>(api: GridApi<TData>, pixel: number) => {
|
export const getRowNodeAtPixel = <TData = any>(api: GridApi<TData>, pixel: number) => {
|
||||||
if (api.getDisplayedRowCount() <= 0) return;
|
if (api.getDisplayedRowCount() === 0) return;
|
||||||
|
|
||||||
const firstRowIndexOfPage = api.paginationGetPageSize() * api.paginationGetCurrentPage();
|
const firstRowIndexOfPage = api.paginationGetPageSize() * api.paginationGetCurrentPage();
|
||||||
const firstRowNodeOfPage = api.getDisplayedRowAtIndex(firstRowIndexOfPage)!;
|
const firstRowNodeOfPage = api.getDisplayedRowAtIndex(firstRowIndexOfPage)!;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue