8000 OverlayTrigger with rootClose and click trigger requires 2 clicks outside of overlay if scrollable content was previously focused · Issue #6836 · react-bootstrap/react-bootstrap · GitHub
[go: up one dir, main page]

Skip to content
OverlayTrigger with rootClose and click trigger requires 2 clicks outside of overlay if scrollable content was previously focused #6836
Closed
react-restart/ui
#112
@deldreth

Description

@deldreth

Prerequisites

Describe the bug

If the overlay within a click triggered OverlayTrigger contains a scrollable content and the scroll bar has been clicked the overlay requires 2 root clicks to dismiss.

Expected behavior

The overlay should dismiss on 1 click if rootClose is true regardless of interaction with content of the overlay.

To Reproduce

  1. Within the reproducible example click the OverlayTrigger button
  2. Within the overlay click the scrollbar
  3. Click outside of the overlay (not the trigger)

Reproducible Example

https://codesandbox.io/p/sandbox/nostalgic-minsky-s38w7n

Screenshots

No response

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of React-Bootstrap are you using?

2.10.4

What version of Bootstrap are you using?

5.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0