element icon indicating copy to clipboard operation
element copied to clipboard

[Bug Report] cascader and form collocation appear, prompt does not disappear

Open acmeid opened this issue 9 years ago • 4 comments

Element UI version

1.4.7

OS/Browsers version

Google Chrome 版本 61.0.3163.100(正式版本) (64 位)

Vue version

2.5.2

Reproduction Link

https://jsfiddle.net/acmemca/Lsbtonsa/1/

Steps to reproduce

cascader与form搭配使用,cascader没有默认值; 点击提交,执行检验,显示提示语,选择地址后,提示语没有消失。

What is Expected?

cascader与form搭配使用,cascader没有默认值; 点击提交,执行检验,显示提示语,选择地址后,提示语消失。

What is actually happening?

cascader与form搭配使用,cascader没有默认值; 点击提交,执行检验,显示提示语,选择地址后,提示语没有消失。

acmeid avatar Oct 20 '17 08:10 acmeid

Translation of this issue:

Element UI version

1.4.7

OS/Browsers version

Google Chrome version 61.0.3163.100 (official version) (64 bits)

Vue version

2.5.2

Reproduction Link

https://jsfiddle.net/acmemca/Lsbtonsa/1/

Steps to reproduce

Cascader is used with form, and cascader has no default value;

Click Submit, execute the test, display the tooltip, select the address, the prompt does not disappear.

What is Expected?

Cascader is used with form, and cascader has no default value; Click Submit, execute the test, display the tooltip, select the address, the prompt disappears.

What is actually happening?

Cascader is used with form, and cascader has no default value;

Click Submit, execute the test, display the tooltip, select the address, the prompt does not disappear.

element-bot avatar Oct 20 '17 08:10 element-bot

The value of Cascader is an array, so you should declare it in the rules: https://jsfiddle.net/Lsbtonsa/2/

Leopoldthecoder avatar Oct 20 '17 09:10 Leopoldthecoder

Thanks.

acmeid avatar Oct 20 '17 09:10 acmeid

增加了props 依旧报错!

shguanbin avatar Aug 17 '18 05:08 shguanbin