chakra-ui-vue
chakra-ui-vue copied to clipboard
cMenu cannot close the menu programmatically when closeOnSelect is set to false
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.
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
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