Skip to content

🐛 [Bug]: Anchor组件滚动事件没有销毁 #120

@huangshuaige

Description

@huangshuaige

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

Activity

added a commit that references this issue on Jun 18, 2024
1de2f9c
self-assigned this
on Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @fu050409@huangshuaige

    Issue actions

      🐛 [Bug]: Anchor组件滚动事件没有销毁 · Issue #120 · DevCloudFE/vue-devui