-
Hi, I'm trying to scroll the Basically trying to do this: <template>
<VList ref="scroller" ...>
...
</Vlist>
</template>
<script>
...
import { VList } from 'virtua/vue';
export default {
...
setup(props, ctx) {
const scroller = ref(null); // using Vue 3.4
watch(scroller, ()=>{
// this never happens. `scroller.value` is always `null`
});
const doSomeScrolling = () => {
// FAILS: scroller.value is always null
scroller.value.scrollBy(100);
}
}
}
</script> I'm at a loss, but maybe the Any help is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Answered by
rvdrijst
Sep 17, 2024
Replies: 1 comment 1 reply
-
Could you make a reproduction? It did not reproduce in my environment. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for having a look.
I had to return the
scroller
ref at the end of thesetup
function to make it work 🤦