-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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 Report] Cascader Component Version 2.9 bug #16085
Comments
Translation of this issue: Element UI version2.9.1 OS/Browsers versionWindow Vue version2.6.10 Reproduction LinkHttps://codepen.io/anon/pen/YoqxRy Steps to reproduceWhen the cascade level 1 and level 2 values are the same, such as "Beijing/Beijing" cascade box does not show the selected median value. What is Expected?The selected value should be displayed in the cascade box What is actually happening?No value is displayed in the cascade box, but the actual data value has changed |
这个要保证 value 值的唯一性 由于你的value值配置的是name 但是你name是一样的 所以会出错 你也可以 props 里面设置 checkStrictly:true 也可以解决 |
谢谢,这个在2.8.2版本以下是没有这样的问题的,我想使用 InfiniteScroll 无限滚动组件所以升级了,但是我并不想要checkStrictly:true 的效果,而是希望选中最后一级才显示。 |
这是2.9.1的问题 cascader 默认都是选择了最后一级才显示 在页面上的啊 |
我明白,但是我需求如此,需要的是name值,如果把 value 设置成 id 也是可以解决这个问题的,那这样我就要遍历原数据去取 name 值了,而且反选的时候同样需要再次遍历查id值,这样麻烦了很多。2.8.2版本以下没有这样的问题,所以我说这是一个bug |
嗯 这个功能 还不成熟 你可以先不升级 |
可以 试着改 源码 我觉得 下一个版本 应该会解决这方面的问题 |
发现类似问题,在2.8.2+的版本。 |
我也遇到了类似的问题,不过出现bug的情况不是 (级联一级和二级值相同时,如 “北京市/北京市” ),出现bug的原因很怪异,退回到2.8.2就恢复正常了。 |
同感昨天也碰到了这个问题,头皮发麻。。。而且选择的数据跟展示的数据不一致 |
解决了么?最新版本还有这问题啊! |
这个问题规划到了2.11.0版本去解决了 |
@Codesboy 请问,2.11.0发布时间有计划吗? |
哦 好吧 谢谢了,现在先降到2.8.2去了,等解决了再升级 |
|
感谢,辛苦 @Codesboy |
Element UI version
2.9.1
OS/Browsers version
window
Vue version
2.6.10
Reproduction Link
https://codepen.io/anon/pen/YoqxRy
Steps to reproduce
当级联一级和二级值相同时,如 “北京市/北京市” 级联框中显示不了选中值
What is Expected?
应当在级联框中显示选中的值
What is actually happening?
级联框中无值显示,但实际数据值已更改
The text was updated successfully, but these errors were encountered: