chakra-ui-vue icon indicating copy to clipboard operation
chakra-ui-vue copied to clipboard

cMenu cannot close the menu programmatically when closeOnSelect is set to false

Open deevannaveed opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. I want the menu to be able to close programmatically event if closeOnSelect is set to false because I want the menu to stay open for some menu items and for some menu items I want to close it.

Describe the solution you'd like I think isOpen prop should still work when closeOnSelect is set to false

Describe alternatives you've considered I used the document.currentElement.blur() which works in Firefox but not working in Chrome.

deevannaveed avatar Jan 28 '21 10:01 deevannaveed

Hey @deevannaveed ! could you provide a reproduction for this issue on codesandbox? Here's a template to start with: https://codesandbox.io/s/charming-frog-z3bp4

codebender828 avatar Mar 14 '21 11:03 codebender828

Hey @deevannaveed ! could you provide a reproduction for this issue on codesandbox?

@codebender828 here is the example: https://codesandbox.io/s/wonderful-lalande-dzc6i?file=/src/App.vue

deevannaveed avatar Mar 21 '21 17:03 deevannaveed