Skip to content

Dropdown 级联下拉组件自动隐藏的问题 #7246

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

Closed
zyplayer opened this issue Jan 2, 2024 · 7 comments
Closed

Dropdown 级联下拉组件自动隐藏的问题 #7246

zyplayer opened this issue Jan 2, 2024 · 7 comments

Comments

@zyplayer
Copy link

zyplayer commented Jan 2, 2024

  • [×] I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.0.8

Environment

Microsoft Edge 版本 120.0.2210.91 (正式版本) (64 位)

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 点击展开下拉
  2. 鼠标移动到二级上
  3. 鼠标移出级联组件
  4. 级联组件直接隐藏了

What is expected?

级联组件不应该被隐藏,只是应该隐藏展开的二级菜单

What is actually happening?

级联组件直接隐藏了

@webvs2
Copy link
Contributor

webvs2 commented Jan 4, 2024

这似乎是一个争议:
如果失去二级焦点后,退回第一级,二级菜单会隐藏到;如果超出级联组件范围,整体就会隐藏;这似乎是更正确的逻辑。

举例如。级联组件作为查询条件来使用,当我关注点到其他输入上,这应该被隐藏

@webvs2
Copy link
Contributor

webvs2 commented Jan 4, 2024

我认为这不是一个问题

@zyplayer
Copy link
Author

zyplayer commented Jan 5, 2024

如果 Dropdown 的打开方式是 hover 这样是没问题的,但是如果是 click,在打开后就应该再次点击或点击网页其他空白处才隐藏才对,不应该移到二级之后再移开就自动把整个下拉隐藏了,因为有很多的二级,移动到一个看到不对,再移到其他地方发现整个就隐藏了,又得点击一下

而且专门看了很多的点击展开的交互,几乎所有的都不会移出二级把整个下拉隐藏的,antdv3的版本也不会这样~就是这一小点迟迟没能升级到V4 😔

大佬们能否考虑下呢🙏

@Aaron-zon
Copy link
Contributor

我也觉得是个问题,示例中在点击Dropdown展开后鼠标直接移出下拉列表区域是不会关闭Dropdown的,只有在鼠标进入二级,再从二级上移出才会关闭Dropdown。

@ryne6
Copy link
Contributor

ryne6 commented Jan 8, 2024

🙂

Copy link

github-actions bot commented Mar 9, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants