question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Active page doesn't change

See original GitHub issue
<paginate
              :page-count="pageCount"
              :click-handler="fetchUsers"
              :force-page="currentPage"
              :prev-text="'>'"
              :next-text="'<'"
              :container-class="'pagination'"
              :page-class="'page-item'">
</paginate>

when fetchUsers is done, pageCount and currentPage will be updated but the active page is still the first page, it should be currentPage.

Do I miss some thing?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
lokyoungcommented, Dec 5, 2018

@trandaison @ojczeo @sreecodeslayer @ditorahard Please try v2.1.0. Now it support no v-model binding. Any questions please reopen this issue. Thanks!

0reactions
ojczeocommented, Aug 15, 2018

Do you operate over Array in pageNumber? In short arrays reactivity is tricky in Vue.js. You should proxy it with computed value and use for this Vue.set, for example:

import Vue from 'vue'
//...
computed: {
  pageNumber: {
    get() {
      return this.pageNumber[0]    
    },
    set(value) {
      Vue.set(this.pageNumber, 0, value);  
    }
  }
}
//...

Next you can set pageNumber as model.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Navbar Active won't change when clicking to another page
I wish to have the activate tab change as a user goes through the different pages. I am using a base template so...
Read more >
WordPress Changes Not Showing? Here's How to Fix ... - Kinsta
Having issues with WordPress changes not showing on your site? It's usually problems with caching - we'll show you how to fix the...
Read more >
Can't change the color of the active page text on header
Hello Guys,. I want to change the color of the text of the active page in the header menu… i tried this: .main-header-menu...
Read more >
Pagination script not updating number of pages on select ...
I have a script that paginates pages in a table, which works fine. I also have a dropdown to select how many records...
Read more >
Common problems with two-step verification for a work or ...
We've put together this article to describe fixes for the most common problems. Your Azure Active Directory (Azure AD) organization can turn on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found