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 级联选择器] 如果设置的值在级联中没有的话会直接报错无法正常运行 #3595

Closed
Brokenstrings opened this issue Nov 10, 2023 · 3 comments
Labels
to be published to be published

Comments

@Brokenstrings
Copy link

tdesign-vue-next 版本

1.6.8

重现链接

No response

重现步骤

我们系统创建菜品的时候用级联选择器去选择对应食材分类+食材,然后食材和食材分类有的时候需要删除一些,这就导致后续修改菜品的时候直接报错了,因为级联选择器里面没有对应的食材分类或食材了,我看elementui他们那边找不到对应数据的时候会直接显示值,而不是直接报错。

期望结果

如果级联选择器中没有对应的值,应该显示空或直接显示值,而不是报错影响整个项目。

实际结果

直接报错无法进行修改

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

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

@Brokenstrings
Copy link
Author

image

@boogie-ben
Copy link
Contributor

更新后遇到相同的问题了,应该是1.6.1版本之后出现的问题了

并且级联组件的匹配值有问题
image

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

No branches or pull requests

3 participants