Skip to content
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

下拉菜单dropdown,有多个带子菜单的一级菜单时,只有最后一个正常工作 #6306

Open
5 tasks done
abcde1477 opened this issue Sep 2, 2024 · 2 comments
Labels
untriaged need to sort

Comments

@abcde1477
Copy link

abcde1477 commented Sep 2, 2024

Describe the bug

bug in dropdown(before) bug in dropdown(after)
如图所示,当鼠标移动到二级菜单时,应该展示的二级菜单消失,展开了最后一个带子菜单的一级菜单。
测试了发现与一级菜单是否相邻无关。

Steps to reproduce

  1. use <n-dropdown><n-button></n-button></n-dropdown>
  2. in options, set more 2 menu items with children.

Link to minimal reproduction

github : https://github.com/abcde1477/bug-report/tree/main/naive-ui-2-39
codesandbox: https://codesandbox.io/p/github/abcde1477/bug-report/codesandbox-naive

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (8) x64 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
    Memory: 11.15 GB / 15.50 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
  Browsers:
    Firefox
-----------------------
  System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M2
    Memory: 99.53 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.1 - /usr/local/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.2.4 - /usr/local/bin/npm
    pnpm: 9.1.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Firefox

Used Package Manager

npm

Validations

video

https://github.com/abcde1477/bug-report/blob/main/naive-ui-2-39/issue_recording/recording.mov

@abcde1477 abcde1477 added the untriaged need to sort label Sep 2, 2024
@jahnli
Copy link
Collaborator

jahnli commented Oct 11, 2024

Provide a based on CodeSandbox or stackblitz [Minimal, Reproducible Example] (https://stackoverflow.com/help/minimal-reproducible-example)

@abcde1477
Copy link
Author

Thank you for your response.I have created a minimal reproducible example based on CodeSandbox as requested. It took me some time. You can find it here: https://codesandbox.io/p/github/abcde1477/bug-report/codesandbox-naive
Additionally, I recorded a short video demonstrating the bug in action, You can view the video here: https://github.com/abcde1477/bug-report/blob/main/naive-ui-2-39/issue_recording/recording.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
Development

No branches or pull requests

2 participants