-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
select组件被destroy时出现TypeError: Cannot read property '__resizeListeners__' of undefined #3797
Comments
应该是vue 2.2.6改的vuejs/vue@3209f6f 这个的原因, https://github.com/ElemeFE/element/blob/dev/packages/scrollbar/src/main.js#L128 |
我也出现同样的问题,select销毁是报同样的错。 |
+1 |
这个示例下面el-select隐藏的时候就会报错。 |
+1,在被销毁时产生了警告
|
+1,同样遇到这个问题.看了半天以为代码哪里没写对,上来一看才发现这是个BUG啊,哈哈. |
这个问题还是存在的啊·@Leopoldthecoder |
全部更新了一遍,问题依旧 |
This problem still exists for me too (tried to reinstall all npm packages, etc) |
抱歉,只修了 Select,没修 Scrollbar。暂时先降级 Vue 吧。 |
@Leopoldthecoder 预计下一版什么时候发布。 vue2.2.5 跟 vue-router 还有内存泄露的情况。 |
vue2.2.5 vue-router 和tabs还是会报错 |
@An0nymous0 @bigrocs 今天吧 |
哪个 issue?问题是啥 |
没有开issue 当我切换路由 或者tabs标签发送http请求是都会报错如下
|
@bigrocs |
@QingWei-Li |
@bigrocs |
@tbphp |
@bigrocs 你看你组件里面有没有select比如分页组件里面也有下拉组件。 |
@tbphp @QingWei-Li 不过正常打开的时候不触发 只有切换tabs 或者路由的时候触发 |
table也使用select组件 是我错了 。。。 确实是select引起的 |
@tbphp @QingWei-Li |
我也出现了同样的问题,将select删除后并不会出现该问题,应该是select本身的问题吧,不知道什么时候能够给出解决方案? |
组件 pagination 组件好像也是引用select组件引起的.. |
什么时候发布修复版本 |
|
感谢! |
@GaoYuanOnline 用 1.2.9 |
@Leopoldthecoder 升级到1.2.9后可以解决该问题,谢谢! |
@vincepeng 这都哪个版本了,你把你的包都 |
Element UI version
1.2.5
OS/Browsers version
chrome 57
Vue version
2.2.6
Reproduction Link
无
Steps to reproduce
子页面使用el-select后,切换到其他子页面,在执行destory时出现如题JS error。
vue.runtime.esm.js:554 [Vue warn]: Error in destroyed hook:
(found in )
vue.runtime.esm.js:1443 TypeError: Cannot read property 'resizeListeners' of undefined
at removeResizeListener (resize-event.js:183)
at VueComponent.destroyed (scrollbar.js:245)
at callHook (vue.runtime.esm.js:2269)
at VueComponent.Vue.$destroy (vue.runtime.esm.js:2091)
at destroy (vue.runtime.esm.js:2958)
at invokeDestroyHook (vue.runtime.esm.js:4773)
at invokeDestroyHook (vue.runtime.esm.js:4778)
at VueComponent.patch [as patch] (vue.runtime.esm.js:5039)
at VueComponent.Vue.$destroy (vue.runtime.esm.js:2089)
at destroy (vue.runtime.esm.js:2958)
What is Expected?
没有JS Error
What is actually happening?
出现描述中的error
The text was updated successfully, but these errors were encountered: