baseweb icon indicating copy to clipboard operation
baseweb copied to clipboard

Requires way for closing the select menu

Open hardikmodi1 opened this issue 4 years ago • 1 comments

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.

hardikmodi1 avatar Mar 31 '21 14:03 hardikmodi1

Will raise a PR if someone confirms this change. Whether we should do this or not. Thanks

hardikmodi1 avatar Apr 27 '21 06:04 hardikmodi1