vue3-seamless-scroll icon indicating copy to clipboard operation
vue3-seamless-scroll copied to clipboard

Vue3+ts+vue-class-component中使用报错:Uncaught TypeError: Cannot read properties of null (reading 'offsetHeight')

Open lmsunny opened this issue 1 year ago • 2 comments

完全使用的示例代码,运行不滚动且控制台报错Uncaught TypeError: Cannot read properties of null (reading 'offsetHeight')

另还有警告信息Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.

lmsunny avatar Dec 14 '23 08:12 lmsunny

@lmsunny 同样有这个问题,是装了vue-router之后才出现的。请问下解决了吗?解决办法是什么?

(话说这个作者是不是已经停止维护这玩意了)

Charley-xiao avatar Feb 27 '24 16:02 Charley-xiao

@Charley-xiao 在组件外层添加一个判断,数据未加载出来时不展示组件。v-if="list.length>0",尝试一下,如果不行那就不知道了

lmsunny avatar Mar 04 '24 01:03 lmsunny