mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08:00
fix(base): stop runaway pagination loop caused by browser scroll anchoring
Browser overflow-anchor silently bumped scrollTop by one page's worth of pixels every time a new page of rows committed — anchoring on the AddRowButton that sits below paddingBottom. This kept the near-bottom threshold satisfied and re-fired onFetchNextPage indefinitely, even after the user released the scrollbar. Disabling scroll anchoring on the grid scroll container stops the browser from adjusting scrollTop in response to content growth.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
.gridWrapper {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
overflow-anchor: none;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
padding-left: 6px;
|
||||
|
||||
Reference in New Issue
Block a user