Hello everyone. May I ask how to use scrollToPoint API from ‘ion-content’ docs?
when I use it for our company project and get these errors every time.
hope someone help.
my code:
`
import { IonContent as content } from ‘@ionic/vue’
const scrollToID = (event) => {
const fetchData = event.$el.nextSibling.nextElementSibling.id;
const ele = document.querySelector(#{fetchData}
);
content.scrollToPoint(0, ele.offsetTop, 1000);
}
`
1 post - 1 participant