Skip to content

Multiple Typeaheads not Closing Other Typeaheads (React 17) #695

Closed
@dleavitt

Description

@dleavitt

Version

react-bootstrap-typeahead 5.2.1 (6.0.0-alpha.8 also affected)
react 17.0.1
react-dom 17.0.1

Steps to reproduce

Go here: https://codesandbox.io/s/rbt-multi-not-closing-forked-ppj01

  • Click on the bottom (third) typeahead
  • Click on the middle (second) typeahead

Expected Behavior

The third typeahead should close.

Actual Behavior

The third typeahead stays open, obscuring the second.

Behaves as expects when:

  • Using React 16.x
  • Opening a typeahead where multiple={false}
  • Clicking anywhere else on the page.

Screen Shot 2022-02-14 at 13 16 57

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions