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] when the cascade selector is assigned a value for the second time, the display is correct, but when you click to open the drop-down selector again, the displayed provinces, cities and counties are wrong, or the result of the first assignment. #20654

Closed
citystory opened this issue Jan 6, 2021 · 2 comments
Assignees

Comments

@citystory
Copy link

Element UI version

2.14.1

OS/Browsers version

win10系统/谷歌浏览器版本 87.0.4280.88

Vue version

2.6.12

Reproduction Link

https://codepen.io/citystory/pen/MWjGMWe

Steps to reproduce

重现链接详见:http//jsrun.net/BmIKp。先点击左侧第一个按钮“赋值1”,再点击第二个按钮“赋值2”,然后再点左侧的Cascader组件,弹出的选框内的值是错误的。

What is Expected?

第二次赋值之后,点击Cascader组件,弹出的选框内的值应该跟第二次赋值的相同,跟未点击Cascader组件时显示的值相同。

What is actually happening?

第二次赋值之后,点击Cascader组件,弹出的选框内的值是错误的。

@element-bot element-bot changed the title [Bug Report] Cascader 级联选择器 第二次赋值时,显示正确,但是再点击打开下拉选择器时,显示的省市县是错误的,还是第一次赋值的结果。 [bug report] when the cascade selector is assigned a value for the second time, the display is correct, but when you click to open the drop-down selector again, the displayed provinces, cities and counties are wrong, or the result of the first assignment. Jan 6, 2021
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

2.14.1

OS/Browsers version

Win10 system / Google browser version 87.0.4280.88

Vue version

2.6.12

Reproduction Link

https://codepen.io/citystory/pen/MWjGMWe

Steps to reproduce

Please refer to: http// jsrun.net/BmIKp 。 First click the first button on the left "Assignment 1", then click the second button "assignment 2", and then click the cascade component on the left. The value in the pop-up box is wrong.

What is Expected?

After the second assignment, click the cascade component, and the value in the pop-up selection box should be the same as that in the second assignment, and the same as the value displayed when the cascade component is not clicked.

What is actually happening?

After the second assignment, click the cascade component, and the value in the pop-up box is wrong.

@iamkun
Copy link
Member

iamkun commented Feb 2, 2021

fixed

@iamkun iamkun closed this as completed Feb 2, 2021
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

4 participants