Closed Angelk90 closed 3 years ago
I've been having a similar issue. Your problem might be resolved by hacking your css a little bit. In the parent div of your table and pagination don't use flex. If you need flex, don't align your items horizontally in the center.
I think this issue might also lie in the fact your pagination div is rendered outside of your table div, which shouldn't be happening. Strangely it's been happening in my production built but not locally.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@jbetancur : is there any news?
Issue Check list
styled-components
Describe the bug
As you can see in the image, the pagination appears in the center. After doing the update I noticed this problem. I used to use the version,
"react-data-table-component": "^6.3.1"
now the"react-data-table-component": "^6.11.5"
.Analyzing the code (see screen) I noticed that before the
nav
tag there is adiv
tag, which was not there before if the following tag is given as the following rule:width: 100%;
, it seems to fix the problem, but I'm not sure.At the moment I use a custom pagination (see code below), but even if I remove the custom pagination it gives me the same problem.
Another thing I noticed is that weird line above the pagination.
Expected behavior
Pagination on the right.
Code Sandbox, Screenshots, or Relevant Code
Table:
CustomMaterialPagination:
Versions (please complete the following information)
React (RDT requires 16.8.0+) Styled Components OS: Ubuntu 18
Additional context
@jbetancur : Could you give me a hand?