[Vuejs]-IonContent scrollToTop function not working when I change the route

0👍

add the two lines as a comment to solve the problem

const ScrollToBottom = () => {
    let scrollContent = document.querySelector('ion-content');

    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    //@ts-ignore
    scrollContent.scrollToTop(400);
};

Leave a comment