Skip to content

[Performance] [affix] Affix 组件当超出浏览器视图后会导致浏览器挂死 #23598

@WangJincheng4869

Description

@WangJincheng4869

Bug Type: Performance

Environment

  • Vue Version: 3.5.27
  • Element Plus Version: 2.13.2
  • Browser / OS: UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0
  • Build Tool: Vite

Reproduction

Related Component

  • el-affix

Reproduction Link

Element Plus Playground

Steps to reproduce

  1. 打开我的 demo
  2. 将浏览器窗口缩小
  3. 向上缩小窗口即可复现

What is Expected?

不要让浏览器进程挂死

What is actually happening?

  1. 导致浏览器挂死
  2. 如果元素很多,那么打开立即挂死

Additional comments

谷歌浏览器版本:144.0.7559.110

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions