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

When click on the nested submenu item, only the direct parent menu is highlighted, and the menu items on the grandfather level are not highlighted #8666

Closed
xiaobao66 opened this Issue Dec 19, 2017 · 1 comment

Comments

Projects
None yet
5 participants
@xiaobao66

xiaobao66 commented Dec 19, 2017

Version

3.0.2

Environment

win10 chrome61 react16

Reproduction link

https://ant.design/components/menu-cn/#components-menu-demo-vertical

Steps to reproduce

In the vertical menu demo, the Navigation Two menu item is not highlighted when you click on Option 7 which is under the Submenu item and is under the Navigation Two menu item
(Navigation Two----Submenu----Option 7). Only Submenu and Option 7 are highlighted

What is expected?

When you click on a nested submenu item, all associated parent menu items can be highlighted

What is actually happening?

Only the direct parent menu is highlighted, and the menu on the grandfather level is not highlighted

@ant-design-bot

This comment has been minimized.

ant-design-bot commented Dec 19, 2017

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: #4897

@xiaobao66 xiaobao66 changed the title from 点击嵌套子菜单项,父级菜单未被高亮 to 点击嵌套子菜单项,只有直接父级菜单被高亮,祖父级之上的菜单项未被高亮 Dec 19, 2017

@xiaobao66 xiaobao66 changed the title from 点击嵌套子菜单项,只有直接父级菜单被高亮,祖父级之上的菜单项未被高亮 to When click on the nested submenu item, only the direct parent menu is highlighted, and and the menu items on the grandfather level are not highlighted Dec 19, 2017

@xiaobao66 xiaobao66 changed the title from When click on the nested submenu item, only the direct parent menu is highlighted, and and the menu items on the grandfather level are not highlighted to When click on the nested submenu item, only the direct parent menu is highlighted, and the menu items on the grandfather level are not highlighted Dec 20, 2017

yesmeck added a commit that referenced this issue Jun 1, 2018

Fix issue #8666 (#10739)
* fix issue #8666

* add issue #8666 test

@afc163 afc163 closed this Jun 1, 2018

@afc163 afc163 referenced this issue Jun 1, 2018

Merged

Fix issue #8666 #10739

5 of 10 tasks complete

bors bot added a commit to mozilla/delivery-console that referenced this issue Jun 4, 2018

Merge #177
177: Update dependency antd to v3.6.1 r=rehandalal a=renovate[bot]

This Pull Request updates dependency [antd](https://github.com/ant-design/ant-design) from `v3.5.4` to `v3.6.1`



<details>
<summary>Release Notes</summary>

### [`v3.6.1`](https://github.com/ant-design/ant-design/releases/3.6.1)
[Compare Source](ant-design/ant-design@3.6.0...3.6.1)
* 🐞 修复一个 Typescript 的编译错误。

---

* 🐞 Fixing a Typescript compilation error.

---

### [`v3.6.0`](https://github.com/ant-design/ant-design/releases/3.6.0)
[Compare Source](ant-design/ant-design@3.5.4...3.6.0)
* 🌟 `Form`'s error message now can be customized with ReactNode. [#&#8203;10136](`ant-design/ant-design#10136) [@&#8203;lovekonakona]
* 🌟 `List` support customized configuration for position of pagination. [#&#8203;10581](`ant-design/ant-design#10581) [@&#8203;zheeeng]
* 🌟 `Layout.Sider` now can be configured with `light` or `dark` theme. [#&#8203;10142](`ant-design/ant-design#10142) [@&#8203;pd4d10]
* 🌟 Ant Design official site now supports offline mode. [#&#8203;10625](`ant-design/ant-design#10625)
* 🌟 `Transfer` adding `style` and `operationStyle` props for further customization. [@&#8203;eduludi]
* 🌟 `Message` adds a promisfied interface to handle callback. [#&#8203;10421](`ant-design/ant-design#10421) [@&#8203;zhujinxuan]
* 🐞 Fix compilation issue with typescript@&#8203;v2.9.1 . [#&#8203;10729](`ant-design/ant-design#10729) [@&#8203;karol-majewski]
* 🐞 Fix a bug in `Menu` where outer menu item not highlighting while inner item is selected. [#&#8203;8666](`ant-design/ant-design#8666) [@&#8203;stonehank]
* 🐞 Affix `offsetBottom` not working. [#&#8203;10674](`ant-design/ant-design#10674)

---

* 🌟 `Form` 表单错误信息展示支持传入 ReactNode。 [#&#8203;10136](`ant-design/ant-design#10136) [@&#8203;lovekonakona]
* 🌟 `List` 组件支持指定分页器的位置。 [#&#8203;10581](`ant-design/ant-design#10581) [@&#8203;zheeeng]
* 🌟 `Layout.Sider` 支持 dark/light 主题定制。 [#&#8203;10142](`ant-design/ant-design#10142) [@&#8203;pd4d10]
* 🌟 支持 Ant Design 站点的离线模式。 [#&#8203;10625](`ant-design/ant-design#10625)
* 🌟 `Transfer` 新增 `style` 以及 `operationStyle` 属性配置样式。 [@&#8203;eduludi]
* 🌟 `Message` 增加 promise 化的回调接口。 [#&#8203;10421](`ant-design/ant-design#10421) [@&#8203;zhujinxuan]
* 🐞 修复编译时 typescript v2.9.1兼容性问题。 [#&#8203;10729](`ant-design/ant-design#10729) [@&#8203;karol-majewski]
* 🐞 修复 `Menu` 嵌套超过两层时选中最里层后对应最外层没有亮起问题。 [#&#8203;8666](`ant-design/ant-design#8666) [@&#8203;stonehank]
* 🐞 修复 `Affix` 组件 offsetBottom 无效问题。 [#&#8203;10674](`ant-design/ant-design#10674)

---

</details>




---

This PR has been generated by [Renovate Bot](https://renovatebot.com).

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment