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] 支持点击关闭弹窗 #2050

Open
xmsz opened this issue Jan 27, 2024 · 1 comment
Open

[Dropdown] 支持点击关闭弹窗 #2050

xmsz opened this issue Jan 27, 2024 · 1 comment
Labels
feature request Request new feature

Comments

@xmsz
Copy link

xmsz commented Jan 27, 2024

Which Component Need Enhancement 期望新增功能的组件

  • Dropdown

What does the proposed API look like 期望支持的API

点击关闭弹窗

Feature Description 功能描述

image
现在点击打开了弹窗,只能同个点击其他区域或者点击子项才能关闭弹窗
而点击触发的按钮是关闭不了弹窗的
用户的操作习惯都是,点击同个元素打开,点击同个元素关闭

Additional information 补充说明

其他产品都支持点击触发元素关闭弹窗

@xmsz xmsz added the feature request Request new feature label Jan 27, 2024
@DaiQiangReal
Copy link
Collaborator

trigger={'custom'} visible={v} 然后用click 事件去修改 dropdown 的受控 v 来展开收起

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request new feature
Projects
None yet
Development

No branches or pull requests

2 participants