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

fix: #26126 use mergedData instead of pageData to decide whether to render bottom pagination or not #26133

Merged
merged 1 commit into from Aug 11, 2020

Conversation

QoVoQ
Copy link
Contributor

@QoVoQ QoVoQ commented Aug 11, 2020

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

close #26126

💡 Background and solution

Currently, when using backend pagination (meaning manually managing property pagination.total), if the last record on the last page is deleted, and pagination becomes invisible(which should not happen), since length of records is not 0.

Use mergeData.length to decide whether to render bottom pagination should fix the problem.

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Aug 11, 2020

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Aug 11, 2020

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2ac4543:

Sandbox Source
antd reproduction template Configuration

@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #26133 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #26133   +/-   ##
=======================================
  Coverage   99.56%   99.56%           
=======================================
  Files         373      373           
  Lines        7316     7316           
  Branches     2035     2044    +9     
=======================================
  Hits         7284     7284           
  Misses         32       32           
Impacted Files Coverage Δ
components/table/Table.tsx 99.26% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d0b9f6e...2ac4543. Read the comment docs.

@afc163 afc163 merged commit f650139 into ant-design:master Aug 11, 2020
@pr-triage pr-triage bot added the PR: merged label Aug 11, 2020
@afc163
Copy link
Member

afc163 commented Aug 11, 2020

close #25836 too

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

Successfully merging this pull request may close these issues.

Table pagination should not be hidden when the last record on the last page is deleted
3 participants