element-plus [menu] There may be a problem with the focus state of the menu component

ioekq8ef  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(51)

Bug Type: Other

Environment

  • Vue Version: 3.2.38
  • Element Plus Version: 2.2.27
  • Browser / OS: Chrome/110.0.5481.104
  • Build Tool: Vite

Reproduction

  • el-menu

Element Plus Playground

Steps to reproduce

First click the ProcessingCenter menu and then the menu will appear in the background color because of the focus.

Then click submenu of the Workspace eg item-one/item-two.

首先点击ProcessCenter菜单,此时此菜单会因为focus而出现背景色。
接着点击Workspace菜单的子菜单,例如:itenm-one/item-two。

What is Expected?

The background color of the ProcessingCenter menu disappears.

ProcessingCenter 菜单的背景色消失。

What is actually happening?

The background color of the ProcessingCenter menu does not disappear.

ProcessingCenter 菜单的背景色依旧存在。

Additional comments

It can see that when the submenu is pressed, the background color disappears. But it reappeared after the click ended.

可以看见当按下子菜单时ProcessingCenter菜单的背景色消失了,但click事件结束后又出现。

I'm not sure if this is a problem with the el-menu component or the browser.

我不确定这是el-menu组件的问题还是浏览器的问题

rdlzhqv9

rdlzhqv91#

I see the same effect on edga browser and firefox browser.

相关问题