setup: () => {
const tableElementRef: Ref<HTMLElement | null> = ref(null);
const { scrollTop, scrollTopTo } = useOnScroll(tableElementRef);
const onClick = async function onClick () {
// Scroll To Table
console.debug('tableElementRef', tableElementRef, tableElementRef.value);
scrollTopTo(scrollTop.value);
// Fetch via store
await store.doAction();
};
return { tableElementRef, onClick };
}
[Vue warn]: Error in event handler for "hook:beforeUpdate": "TypeError: e.addEventListener is not a function"
TypeError: e.addEventListener is not a function
addEventListener vue-composable.esm-bundler.js:179
removeWatch vue-composable.esm-bundler.js:184
node_modules vue-composition-api.esm.js:1039
node_modules vue-composition-api.esm.js:982
node_modules vue-composition-api.esm.js:893
node_modules vue-composition-api.esm.js:849
VueJS 7
Can you provide your template code?
Are you assigning
tableElementRef
to a HTML element?