Small fix

pull/117/head
MMP0 2023-08-24 13:12:13 +09:00
parent 2b75548c28
commit 41799deba8
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,7 @@ FocusService.prototype.setFocusedCell = function (params) {
};
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 firstRowNodeOfPage = api.getDisplayedRowAtIndex(firstRowIndexOfPage)!;