We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
0.0.1
3.1.1
https://vue-devui.github.io/components/anchor/
在看源码的时候发现的,不知道是不是这样设计的,后来去看了下angular版本确实是没有销毁,从Anchor生成的时候用了window.onscroll,组件销毁的时候没做任何处理
window.onscroll = null
No response
The text was updated successfully, but these errors were encountered:
fix(anchor): remove listeners when component destroyed
1de2f9c
- Fixed some spelling mistakes in the code. - Add unmounted method. - Remove all listeners when unmounted. Resolves: DevCloudFE#120
fu050409
Successfully merging a pull request may close this issue.
Version
0.0.1
Vue Version
3.1.1
Link to minimal reproduction
https://vue-devui.github.io/components/anchor/
Step to reproduce
在看源码的时候发现的,不知道是不是这样设计的,后来去看了下angular版本确实是没有销毁,从Anchor生成的时候用了window.onscroll,组件销毁的时候没做任何处理
What is expected
window.onscroll = null
What is actually happening
No response
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered: