-
Notifications
You must be signed in to change notification settings - Fork 443
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
【重要】resize-event.js removeResizeListener undefined报错 #833
Comments
Me too |
It must happend when i reload page where Select component . |
Me too This issue is reproduced when the selection component is not exposed or displayed by asynchronous data props, when determined by the rendering method, and when there is a selection component previously. Perhaps the error occurs because removeResizeListener is fired after the previously mounted component has been unmounted and there is no element .__ resizeListeners__ at this time. In my case, instead of determining whether to expose a select component in render, I changed it to setting the state value in componentWillReceiveProps, and the issue was no longer reproduced. |
Description
在Select 组件上经常发生报错,会导致页面崩溃
Reproduce Steps
不太确认复现步骤,应该是Select组件快速
mount
和unmount
,结果element.__resizeListeners__.splice
里的__resizeListeners__
是undefinedError Trace (if possible)
It's better to post up the error stack for us to trace this issue.
Solution
What needs to be done to address this issue? Ideally, provide a pull request with a fix.
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.
The text was updated successfully, but these errors were encountered: