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

[TablePagination] Fix negative pagination numbers #8435

Merged
merged 3 commits into from
Sep 28, 2017

Conversation

leMaik
Copy link
Member

@leMaik leMaik commented Sep 28, 2017

Fixes #8431

@leMaik leMaik changed the title [TablePagination] Never show negative start numbers, display start nu… [TablePagination] Fix negative pagination numbers Sep 28, 2017
);
}

const wrapper = mount(<ExampleTable rowsPerPage={5} />);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is shallow possible?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I should split the test. I'll update this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, I can't get the text of the nested typography element if the Table is shallow. 😕 I updated the test to actually test if #8431 is fixed.

@oliviertassinari oliviertassinari added component: table This is the name of the generic UI component, not the React module! v1 labels Sep 28, 2017
@oliviertassinari oliviertassinari merged commit 1683dbf into mui:v1-beta Sep 28, 2017
@oliviertassinari
Copy link
Member

@leMaik Great! :)

@leMaik leMaik deleted the fix-table-pagination branch September 28, 2017 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: table This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants