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

[Component] [select] [el-select] When el-option is given a custom value props, the component falls into an infinite loop, eventually causing a stack overflow. #15231

Closed
CherishTheYouth opened this issue Dec 22, 2023 · 1 comment · Fixed by #15352

Comments

@CherishTheYouth
Copy link
Contributor

CherishTheYouth commented Dec 22, 2023

Bug Type: Component

Environment

  • Vue Version: 3.4.0-beta.4
  • Element Plus Version: 2.4.4
  • Browser / OS: Edg/113.0.1774.50
  • Build Tool: Vite

Reproduction

Related Component

  • el-select

Reproduction Link

Element Plus Playground

Steps to reproduce

  • open the console before view the playground demo, or the browser will stuck and you could not see the problems
  • when you set the el-option value as :value="{ ...item }" it will trigger that problem. it works well when value is :value="item"

What is Expected?

works well

What is actually happening?

It falls into an infinite loop, eventually causing a stack overflow

Additional comments

在给 el-option 的value设定一个自定义的值,而不是直接从 option 的选项中拿到一个值时,会触发无限循环,最终浏览器堆栈溢出,页面卡死。

复现链接打开会直接卡死,打开之前先打开控制台,否则看不到现象。

Copy link

github-actions bot commented Feb 9, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants