[Table] All option demo display wrong text
See original GitHub issueWhen select All option in table pagination(with -1 value) the display text shown 1--1 of x
instead of 1-x of x
- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
Display wrong number( -1
) when select ALL option.
Expected Behavior 🤔
Should display 1-x of x
when x is the number of rows
Steps to Reproduce 🕹
Steps:
- go to example in https://material-ui.com/components/tables/#custom-pagination-options
- select All option in pagination
- the text become
1--1 of 13
Context 🔦
Trying to get correct data
Your Environment 🌎
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
[Table] All option demo display wrong text #23277 - GitHub
When select All option in table pagination(with -1 value) the display text shown 1--1 of x instead of 1-x of x The issue...
Read more >Table Options - Bootstrap Table
Detail: All buttons will show text on them. Default: false. Example: show button text. showColumns.
Read more >Text doesn't display properly - Canva Help Center
Here's how to fix this: Open the design where the text display error is. Select the text box where ☒ or ▯ is....
Read more ><table>: The Table element - HTML - MDN Web Docs - Mozilla
This attribute defines the space between the content of a cell and its border, displayed or not. If the cellpadding's length is defined...
Read more >A Complete Guide to the Table Element | CSS-Tricks
The <table> element in HTML is used for displaying tabular data. ... Using our existing simple demo, the top row is all headers....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JoaoJesus94 Sounds great, we would only need to add a test case to avoid a regression in the future (like we already had) 😃
@oliviertassinari It seems that the changes that @hswimmer suggested will fix it. Regarding prop
count
I think we don’t need to touch it.-1
already means “unknown”