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

[Cascader] 传入的 value 不在 options中时会直接报错 #2404

Closed
MaelWeb opened this issue Jul 31, 2023 · 2 comments
Closed

[Cascader] 传入的 value 不在 options中时会直接报错 #2404

MaelWeb opened this issue Jul 31, 2023 · 2 comments
Labels
to be published fixed, not be published

Comments

@MaelWeb
Copy link

MaelWeb commented Jul 31, 2023

tdesign-react 版本

18.2.0

重现链接

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

重现步骤

参考demo,给组件传入不在 options 中的 value会导致组件直接报错。

期望结果

不要直接报错,会导致整个业务不可用。

实际结果

组件报错导致业务不可用

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

♥️ 有劳 @PengYYYYY 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @MaelWeb

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

No branches or pull requests

2 participants