DevExpress / devextreme-reactive

Business React components for Bootstrap and Material-UI
https://devexpress.github.io/devextreme-reactive/
Other
2.07k stars 376 forks source link

Grid page size Select scrolls to top on open #2788

Closed ferc closed 4 years ago

ferc commented 4 years ago

I'm using ...

Current Behaviour

When I click on the Select component in order to change the page size in the Grid, the page scrolls to top (Material-UI implementation)

Seems to be related with the position: absolute added in this line: https://github.com/DevExpress/devextreme-reactive/blob/master/packages/dx-react-grid-material-ui/src/templates/paging-panel/page-size-selector.jsx#L31

Expected Behaviour

The scroll should not be affected when I open the page size Select

Steps to Reproduce

Just click to the page size Select, make sure you scrolled down first in order to open the page size select (so you can see the scroll jump)

Link to the example that reproduces the issue: https://codesandbox.io/s/qw73m / https://devexpress.github.io/devextreme-reactive/react/grid/demos/featured/integrated-data-shaping/ (every grid with pagination)

Screenshots

Screen Shot 2020-03-31 at 5 11 00 PM

Environment

LazyLahtak commented 4 years ago

Hi @ferc,

Thank you for your report. We will fix it soon.

lock[bot] commented 4 years ago

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.