vuejs-loadmore icon indicating copy to clipboard operation
vuejs-loadmore copied to clipboard

TypeError: Cannot read property 'getBoundingClientRect

Open locdlocd opened this issue 3 years ago • 2 comments

调用的时候为什么一直报这个错 "[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'getBoundingClientRect' of undefined"\n\nfound in\n\n---> <Loadmore>\n at src/xxx.vue\n <App> at src/App.vue\n <Root>"

locdlocd avatar Jun 15 '22 03:06 locdlocd

是不是用的非移动端浏览器呢,getBoundingClientRect有兼容性,移动端的都支持

staticdeng avatar Jul 11 '22 09:07 staticdeng

我也遇到了同样的问题,麻烦问一下你是如何解决的

lilooc avatar Aug 09 '22 03:08 lilooc

checkSroll没有解绑

`mounted () { this._checkSroll = throttle(this.checkSroll, 200)

this.scroller.addEventListener('scroll', this._checkSroll)

beforeDestroy () { this.scroller.removeEventListener('scroll', this._checkSroll) },`

leafiy avatar Oct 28 '22 10:10 leafiy

我也遇到了同样的问题,麻烦问一下你是如何解决的

This is a bug in a certain scenario. I have fixed this problem in v1.0.8 这是一个在某种场景下出现的bug,我已经在v1.0.8版本中修复了这个问题

staticdeng avatar Nov 23 '22 06:11 staticdeng

调用的时候为什么一直报这个错 "[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'getBoundingClientRect' of undefined"\n\nfound in\n\n---> \n at src/xxx.vue\n at src/App.vue\n "

I updated v1.0.8 to fix this problem. Please update it to see if the problem has been solved 我更新了v1.0.8版本来修复这个问题,请更新一下看看问题解决了没有

staticdeng avatar Nov 23 '22 06:11 staticdeng

thanks

---Original--- From: @.> Date: Wed, Nov 23, 2022 14:04 PM To: @.>; Cc: @.@.>; Subject: Re: [staticdeng/vuejs-loadmore] TypeError: Cannot read property 'getBoundingClientRect (Issue #6)

调用的时候为什么一直报这个错 "[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'getBoundingClientRect' of undefined"\n\nfound in\n\n---> \n at src/xxx.vue\n at src/App.vue\n "

I updated v1.0.8 to fix this problem. Please update it to see if the problem has been solved 我更新了v1.0.8版本来修复这个问题,请更新一下看看问题解决了没有

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

locdlocd avatar Nov 23 '22 07:11 locdlocd