Description
Prerequisites
- I am using the correct version of React-Bootstrap for my version of Bootstrap
- I have searched for duplicate or closed issues
- I have read the contributing guidelines
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
- Within the reproducible example click the OverlayTrigger button
- Within the overlay click the scrollbar
- 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