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

On NMenu, you cannot override the "trigger" prop for DropdownProps, as it gets overridden with "hover" anyways. #4147

Closed
bertin0 opened this issue Dec 6, 2022 · 1 comment · Fixed by #4148
Labels
bug Something isn't working

Comments

@bertin0
Copy link
Contributor

bertin0 commented Dec 6, 2022

TuSimple/naive-ui version (版本)

2.34.2

Vue version (Vue 版本)

3.2.45

Browser and its version (浏览器及其版本)

Firefox 107.0.1

System and its version (系统及其版本)

Ubuntu 22.10

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/dreamy-ace-lkszqg

Reappearance steps (重现步骤)

Use NMenu. Try to override :dropdown-props="{ trigger: 'click' }". The dropdown still opens on hover.

Expected results (期望的结果)

The dropdown opens only on click.

Actual results (实际的结果)

The dropdown opens on hover.

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Dec 6, 2022
@07akioni 07akioni added bug Something isn't working and removed untriaged need to sort labels Dec 11, 2022
@bertin0
Copy link
Contributor Author

bertin0 commented Dec 11, 2022

Wow, thanks for the quick response and merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants