Ion-content scrollByPoint using composition API

I’m trying to use scrollByPoint method for ion-content element using composition API but the method doesn’t exist.

This is how I do it:

<ion-content ref="dishContent">

<script setup>
const dishContent = ref<InstanceType<typeof IonContent>>()
someMethod = () => {
dishContent.value.scrollByPoint(0, ratingsWrapper.value.offsetTop, 0)

What am I missing?

Seems like I was able to fix it by accessing $el before firing the method:


Still would be nice to hear a confirmation from someone who knows that this the correct way of accessing this method.