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

[BUG] Table per page dropdown always defaults to first option even when set #292

Closed
eligolding opened this issue Oct 30, 2019 · 0 comments
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@eligolding
Copy link
Contributor

Describe the bug
When setting the pageConfig on a go-table, if you set the perPage to something other than the first option in the pageSizes array, the dropdown will still have the first option selected, even though the table will have the configured page count.

To Reproduce
Steps to reproduce the behavior:

  1. Set perPage to something other than default:
this.tableConfig = new GoTableConfig({
  // ...stuffs
  pageConfig: {
    offset: 0,
    pageSizes: [25, 50, 100],
    perPage: 50, // second option
  },
});
  1. Load the page in you browser de jour
  2. See the unexpected results

Tangoe 2019-10-30 11-42-39

@eligolding eligolding added bug Something isn't working new issue This issue has yet to receive attention labels Oct 30, 2019
@grahamhency grahamhency mentioned this issue Oct 31, 2019
@grahamhency grahamhency added this to the v1.3.0 milestone Oct 31, 2019
@grahamhency grahamhency removed the new issue This issue has yet to receive attention label Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants