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.

For ais-pagination component event page-change doesn't fire on IOS

See original GitHub issue

Hi guys,

For ais-pagination component event page-change doesn’t fire on IOS, Chrome. This is the code I use: <ais-pagination :padding="1" v-on:page-change="scrollUp"></ais-pagination>

Pagination itself does work on IOS. Event does fire when I test it on laptop (MacOS). Seems like it’s IOS specific. I use IOS 11.2, IPhone 6s. Chrome version: 63.0.3239.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
alvaxetcommented, Dec 12, 2017

Yes, the issue was with jQuery at the end.

  1. alert didn’t appear because of the cache, after I’ve cleared the cache I started to see it. Which means that it does fire the event and the problem is inside the scroll

  2. Changing $('html').animate({ scrollTop: $('#search-results').offset().top-60 }, 400); to $('body').animate({ scrollTop: $('#search-results').offset().top-60 }, 400);

fixed it. So it wasn’t vue-instantsearch problem at all

Thank you for your time guys

1reaction
jonathan-birdcommented, Sep 4, 2020

@alvaxet I know this is a closed thread, but for future people trying this. The full solution (without jQuery) is:

In methods:

onPageChange() {
    this.$nextTick(function () {
        window.scrollTo({
            top: document.querySelector('.products-list').offsetTop - 60,
            left: 0,
            behavior: 'smooth'
        });
    });
},

In template:

<ais-pagination v-on:page-change="onPageChange" />
Read more comments on GitHub >

github_iconTop Results From Across the Web

ais-instant-search | Vue InstantSearch - Algolia
The ais-instant-search widget is a wrapper that allows you to configure ... the information about the page, modify the state and reapply the...
Read more >
Rome Patch 9 - Product Documentation | ServiceNow
For one of the three date-related fields, change the date. Click anywhere. The page freezes for a while. Release Management. PRB1557884.
Read more >
Customize a Vue InstantSearch widget | Algolia
Vue InstantSearch supports templating via slots. With them you can customize the markup of each sub part of your components. For example in...
Read more >
Fix list for the IBM Business Process Manager Version 8.5 ...
PROCESS ADMIN CONSOLE'S EVENT MANAGER MONITOR CAN'T BE DISPLAYED ... JR57331, IBM PROCESS PORTAL PAGE TITLE DOESN'T REFLECT THE CONTENT OF ...
Read more >
instantsearch.js - UNPKG
If the\n * filter is already set, it doesn't change the filters. ... },\n page: {\n connectors: ['connectPagination'],\n widgets: ['ais.pagination', 'ais.
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