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 Report] el-cascader can not be precisely selected, and online testing is also problematic. #12645

Closed
hhch opened this issue Sep 6, 2018 · 3 comments

Comments

@hhch
Copy link

hhch commented Sep 6, 2018

Element UI version

2.4.6

OS/Browsers version

chrome

Vue version

2.5.17

Reproduction Link

https://jsfiddle.net/26ungd0L/1/

Steps to reproduce

首先设置cascader为 expand-trigger="hover" :change-on-select="true",然后随意将某一2级选项的children去掉,就是在官网的测试例子上把任意一个2级选项的子菜单去掉,然后开始测试,点击尝试选择该没有子元素的选项

What is Expected?

预期是该没有子菜单的选项能选中

What is actually happening?

结果是该没有子菜单的选项选不中,选到其他的选项了,因为单击选择的时候,面板上移隐藏,因为hover选择,选中其他选项了
image
点击Form,但是选中的却是其他选项

@element-bot element-bot changed the title [Bug Report] el-cascader 不能精确选择的问题,在线测试上测试也是有问题 [Bug Report] el-cascader can not be precisely selected, and online testing is also problematic. Sep 6, 2018
@element-bot
Copy link
Member

Translation of this issue:

Element UI version
2.4.6

OS/Browsers version
Chrome

Vue version
2.5.17

Reproduction Link
https://jsfiddle.net/26ungd0L/1/

Steps to reproduce
Set the cascader to expand-trigger= "hover": change-on-select= "true" and then remove the child of a certain level 2 option at will, removing the submenu of any level 2 option from the test example on the official website, then start the test and click try to select the option that has no sub-elements.

What is Expected?
It is expected that the option with no submenus can be selected.

What is actually happening?
The result is that no submenu options are selected, and other options are selected.

@ziyoung
Copy link
Contributor

ziyoung commented Oct 9, 2018

Duplicate of #12508

@ziyoung ziyoung marked this as a duplicate of #12508 Oct 9, 2018
@ziyoung
Copy link
Contributor

ziyoung commented Oct 9, 2018

升级一下版本,这个问题已经修复了。

@ziyoung ziyoung closed this as completed Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants