-
Notifications
You must be signed in to change notification settings - Fork 290
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
fix(anchor): remove listeners when component destroyed