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

🐛[BUG] CellEditorTable 的column valueType是select的时候,当该单元格失去焦点导致select 的request再次调用 #8928

Open
stantoxt opened this issue Dec 17, 2024 · 0 comments

Comments

@stantoxt
Copy link

stantoxt commented Dec 17, 2024

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

在CellEditorTable里面,该字段依赖其他字段初始化selectOptions,但是当select的单元格失去焦点的时候,select 的request再次调用,实际上已经有数据了就不要在调用了

📷 复现步骤

https://codesandbox.io/p/sandbox/vigorous-rgb-kypfxg
操作
1.先点击第一行活动名称单元格,不要修改字符串(如果不点击该单元格,直接点击状态单元格,会导致拉不出来的数据)
2.点击状态单元格,会触发request请求,选择某个option
3.空白处,使状态单元格失去焦点,发现再次产生了request

🏞 期望结果

只有依赖字段更新时候,才调用select 的request,当select的单元格失焦的时候,不要再调用requst

💻 复现代码

https://codesandbox.io/p/sandbox/vigorous-rgb-kypfxg

© 版本信息

  • ProComponents 版本: [2.8.2]
  • chrome最新
  • 开发环境 [windows]

🚑 其他信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant