Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown menu won't close when focus is lost on Modal #2718

Open
HansAarneLiblik opened this issue Mar 15, 2023 · 4 comments
Open

Dropdown menu won't close when focus is lost on Modal #2718

HansAarneLiblik opened this issue Mar 15, 2023 · 4 comments
Assignees

Comments

@HansAarneLiblik
Copy link

HansAarneLiblik commented Mar 15, 2023

  • components: Modal
  • reactstrap version #9.1.6
  • import method es
  • react version #18.2.0
  • bootstrap version #5.2.3

What is happening?

When using https://ericgio.github.io/react-bootstrap-typeahead/ on Modal and Selection menu is open, the menu won't close if focus is moved away from the Typeahead component. (Menu ONLY closes, when selecting an item)

This DOES NOT repro when using react-bootstrap component Modal, but migrating would be a huge effort

What should be happening?

Dropdown menu should close

Steps to reproduce issue

  1. Open the modal
  2. Click on input
  3. Click away from the input (in modal)

image

Code

https://codesandbox.io/s/reactstrap-bug-lu30xq

@HansAarneLiblik
Copy link
Author

Any updates on this ?

@HansAarneLiblik HansAarneLiblik changed the title Typeahead dropdown menu won't close when focus is lost on Modal Dropdown menu won't close when focus is lost on Modal Aug 1, 2023
@HansAarneLiblik
Copy link
Author

Sorry if I'm pinging you incorrectly here, @aaronmars

Here's another repro (Without Typeahead component) - https://codesandbox.io/s/reactstrap-bug-forked-s27kn1

@hassaanistic
Copy link

I wanna work on this Assign This to me ##2718

@illiteratewriter
Copy link
Member

@hassaanistic sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants