Skip to content
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

Pull组件未off事件 #734

Closed
w05163 opened this issue Jul 25, 2021 · 1 comment
Closed

Pull组件未off事件 #734

w05163 opened this issue Jul 25, 2021 · 1 comment
Labels
🐞 bug 漏洞

Comments

@w05163
Copy link

w05163 commented Jul 25, 2021

Description

pull组件内 this.scrollContainer变更导致this.wrap重新赋值,但旧wrap上的事件未取消监听

Steps to Reproduce

  1. componentDidMount
  2. 外部html变更导致this.scrollContainer变更
  3. 之后触发componentDidUpdate,由于scrollContainer已变更,重新执行this.addScrollEvent
  4. this.wrap重新赋值,重新监听,旧wrap上监听的事件未取消监听
@JeromeLin JeromeLin added the 🐞 bug 漏洞 label Jul 26, 2021
@JeromeLin
Copy link
Collaborator

@w05163 感谢反馈,下个版本修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug 漏洞
Projects
None yet
Development

No branches or pull requests

2 participants