From cd34b624b398c7f272a56a5e575700a5d2751e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Thu, 23 Apr 2020 11:17:21 +0800 Subject: [PATCH] :bug: Fix Menu behavior when hover gap (#23511) close #13955 --- components/menu/style/index.less | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/menu/style/index.less b/components/menu/style/index.less index 883d8c1d7e..5cabeaad76 100644 --- a/components/menu/style/index.less +++ b/components/menu/style/index.less @@ -210,17 +210,26 @@ z-index: @zindex-dropdown; border-radius: @border-radius-base; + // https://github.com/ant-design/ant-design/issues/13955 &::before { position: absolute; top: -7px; right: 0; bottom: 0; left: 0; + width: 100%; + height: 100%; opacity: 0.0001; content: ' '; } } + // https://github.com/ant-design/ant-design/issues/13955 + &-placement-rightTop::before { + top: 0; + left: -7px; + } + > .@{menu-prefix-cls} { background-color: @menu-bg; border-radius: @border-radius-base;