ant-design
ant-design copied to clipboard
[Cascader] Submenu not hiding for option which does not have any children
- [x] I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
(1) Create a cascader menu with 3 options (2) Add children to all the options except 2nd. (3) Try to hover from 1st option to 2nd. The children of 1st options are still visible when user goes to 2nd option
What is expected?
Hovering over the option without any children should hide the submenu.
What is actually happening?
When we hover over any option without any children, the submenu of previously hovered option are retained.
| Environment | Info |
|---|---|
| antd | 3.26.3 |
| React | 16.8.6 |
| System | mac v11.0.1 |
| Browser | Chrome 87.0.4280.88 |
这个体验确实不太好