Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination not displaying in Chrome and Other Browsers #574

Closed
loyboy opened this issue May 12, 2020 · 7 comments · Fixed by #577
Closed

Pagination not displaying in Chrome and Other Browsers #574

loyboy opened this issue May 12, 2020 · 7 comments · Fixed by #577

Comments

@loyboy
Copy link

loyboy commented May 12, 2020

The pagination list is no longer displayed in some Sections of my App. I believe some other developers are having the same issue. Please help thanks

@loyboy
Copy link
Author

loyboy commented May 15, 2020

Hey Guys, Please i need a solution to this issue....Thanks

@Dragate
Copy link
Contributor

Dragate commented May 19, 2020

Same problem here. Pagination has vanished from pretty much every datatable I've used it in. The pagination component seems to exist in the dom but is, unfortunately, hidden. Had to downgrade to 6.7.1.

@jbetancur
Copy link
Owner

jbetancur commented May 19, 2020

Details will provide you with a must faster response, as well as using the Issue Issue Checklist. Note: I've tried to duplicate this in Chrome, Firefox, and Safari latest versions with no luck (at least with a basic setup)

On the last item sometimes it's the components around the table that can cause this. eg div component using display flex column

@jbetancur
Copy link
Owner

jbetancur commented May 19, 2020

Yea, it's a wrapping element that is the catalyst and I only see it in Firefox and Safari when I enclose the table in a flex element. I suspect there is some height thing in RDT that is causing this that I need to track down.
@loyboy and @Dragate can you confirm this is the case on your end that using this code causes the issue?

const Div = styled.div`
  display: flex;
`;

const BasicPaginationTable = () => (
  <Div>
    <DataTable
      title="Movie List"
      columns={columns}
      data={data}
      pagination
    />
  </Div>
);

@jbetancur
Copy link
Owner

Please try updating to 6.9.2 and let me know if this solves your issues

@Dragate
Copy link
Contributor

Dragate commented May 19, 2020

Fixed indeed. Tyvm.

@AllenNguyen0417
Copy link

image
Does anyone know how to fix this issue? The pagination is displaying but not working.
"react-data-table-component": "^7.5.3",
"react-dom": "^18.2.0",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants