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

Collapse adds an automatic closing behavior #39540

Open
2 tasks done
ZhangChengLin opened this issue Dec 29, 2023 · 1 comment
Open
2 tasks done

Collapse adds an automatic closing behavior #39540

ZhangChengLin opened this issue Dec 29, 2023 · 1 comment

Comments

@ZhangChengLin
Copy link
Contributor

Prerequisites

Proposal

Collapse Is it possible to add a behavior in the drop-down menu, the automatic closing behavior of the drop-down menu?

Motivation and context

At some point, when using the Collapse component, an auxiliary convenience behavior is needed. That is, the client user may need to let Collapse automatically close after clicking to expand Collapse, or after expanding Collapse, click outside Collapse. When the time comes, Collapse needs to be able to shrink in time instead of always being in an expanded state.

Vice versa, this is slightly different from the drop-down menu. The Collapse component can exist in 2 states for users to use.

Although you can use multiple-toggles-and-targets to cleverly implement similar functions, it is not as straightforward as having similar auxiliary behaviors directly, because those require clever and precise design and calculation.

@amrahs02
Copy link

I'm interested in exploring this issue further and would like to take a chance on implementing it.

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

No branches or pull requests

3 participants