DataTables / DataTables/Plugins

when setting page value to 0 i got the page range from -9 to 0

Open
#130 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

when i was using the input pagination plugin, when i inserted 0 as page value the plugin worked fine as it was 1 but the paging text was "showing -9 to 0 of 25,610 entries"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the input pagination plugin and reproduce the case where the page value is 0. Trace how the page range is calculated and verify that the displayed range never starts at a negative value while still reporting the total of 25,610 entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.