Skip to content

【重要】resize-event.js removeResizeListener undefined报错 #833

@zjy01

Description

@zjy01

Description

在Select 组件上经常发生报错,会导致页面崩溃

Reproduce Steps

不太确认复现步骤,应该是Select组件快速 mountunmount,结果element.__resizeListeners__.splice里的__resizeListeners__是undefined

Error Trace (if possible)

clientMiddleware.js:43 [clientMiddleware] error catched!  error:  TypeError: Cannot read property 'splice' of undefined
    at removeResizeListener (resize-event.js:185)
    at ProxyComponent.componentWillUnmount (Select.js:190)
    at ProxyComponent.proxiedComponentWillUnmount (createPrototypeProxy.js:81)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions