You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue when using react-bootstrap-typeahead together with reactstrap. (This works with react-bootstrap, but migrating would be a huge effort).
When the Typeahead is on modal and menu is open, the menu won't close when clicking away from the component (As testable in codesandbox). Menu DOES close, when selecting an item though, but there are cases when user does not actually want to select anything.
We could create a wrapper and handle menu open/close state ourselves, but would prefer not to, if possible
Hey @HansAarneLiblik thanks for opening this issue. I believe this is an issue with either Reactstrap or React-Overlays's useRootClose hook, which this library uses to control the menu visibility. Here's a minimal repro using just useRootClose.
I have an issue when using
react-bootstrap-typeahead
together withreactstrap
. (This works withreact-bootstrap
, but migrating would be a huge effort).When the
Typeahead
is on modal and menu is open, the menu won't close when clicking away from the component (As testable in codesandbox). Menu DOES close, when selecting an item though, but there are cases when user does not actually want to select anything.We could create a wrapper and handle menu open/close state ourselves, but would prefer not to, if possible
Version
6.0.2
Steps to reproduce
Sandbox: https://codesandbox.io/s/reactstrap-bug-lu30xq
Expected Behavior
Menu closes when focus is removed (Clicked anywhere on the modal, not backdrop)
Actual Behavior
Menu does not close
The text was updated successfully, but these errors were encountered: