mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
Bug no scroll
Ao rolar a fila de tickets estava pulando uma pagina na chamada ao backend (que eu testei estava pulando da pagina 1 direto pra 3), isso eu testei na parte da busca tb.
This commit is contained in:
@@ -263,6 +263,7 @@ const reducer = (state, action) => {
|
||||
const { scrollTop, scrollHeight, clientHeight } = e.currentTarget;
|
||||
|
||||
if (scrollHeight - (scrollTop + 100) < clientHeight) {
|
||||
e.currentTarget.scrollTop = scrollTop - 100;
|
||||
loadMore();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user