baseweb
baseweb copied to clipboard
Requires way for closing the select menu
Current Behavior
There is no way to close the dropdown in selectbox manually. We have a usecase, which requires a way to close the menu on some specific action instead of relying on default behaviour.
Expected Behavior
Baseui can pass the closeMenu function to SelectDropdown component which will further pass it down to Menu. This way we have closeMenu function available in Menu(which is overriden in our case) and can be used to close it.
Your Environment
| Tech | Version |
|---|---|
| Base UI | v9.112.0 |
| React | |
| browser |
- [x] I have searched the issues of this repository and believe that this is not a duplicate.
Will raise a PR if someone confirms this change. Whether we should do this or not. Thanks