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

EnhancedTable组件中,checkStrictly = false 且 selectedRowKeys中包含不存在的key 就报错白屏 #2375

Closed
dinghuihua opened this issue Jul 20, 2023 · 4 comments
Labels
🐞 bug Something isn't working

Comments

@dinghuihua
Copy link

tdesign-react 版本

1.1.15

重现链接

https://codesandbox.io/s/tdesign-react-demo-forked-79wk53?file=/src/demo.jsx

重现步骤

将demo中的checkStrictly改成false即可复现

期望结果

不报错

实际结果

image

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

需求业务场景:在table中含有树的场景下,产品要求是父子节点要关联选中,并且table是带有分页的。那么接口返回已选择数据就有可能包含非当前页的key。 满足了前提条件checkStrictly = false 且 selectedRowKeys中包含不存在的key 就报错白屏了

@github-actions
Copy link
Contributor

👋 @dinghuihua,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@chaishi
Copy link
Collaborator

chaishi commented Jul 20, 2023

明白了,需要处理下判空

@chaishi chaishi added the 🐞 bug Something isn't working label Jul 20, 2023
@chaishi
Copy link
Collaborator

chaishi commented Jul 20, 2023

原计划现在就处理下这个问题,但是发现打开 issue 提供的链接,不知道怎么复现文中描述的问题。

暂时没有时间处理这个问题了,待后续空的时候再看。

@chaishi
Copy link
Collaborator

chaishi commented Jul 25, 2023

resolved in #2385

@chaishi chaishi added the to be published fixed, not be published label Jul 25, 2023
@github-actions github-actions bot mentioned this issue Jul 26, 2023
16 tasks
@uyarn uyarn closed this as completed Jul 26, 2023
@chaishi chaishi removed the to be published fixed, not be published label Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants