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
Is your feature request related to a problem? Please describe.
When clicking on the scrollbar to scroll a page, onClickOutside is triggered and closes the datepicker.
Describe the solution you'd like react-onclickoutside offers the excludeScrollbar parameter to ignore scrollbar clicks.
I'm working on a Pull Request right now to enable this parameter and set as true by default.
Describe alternatives you've considered
none
Additional context
This parameter is only in effect when the user's screen has scrollbars constantly visible.
If your scrollbars hide automatically, a click in their area does not count as a scrollbar click and will still trigger onClickOutside. And this is because of how react-onclickoutside compares the click coordinates to the documentElement. And documentElement clientWidth/clientHeight are different depending on your default scrollbar settings.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is your feature request related to a problem? Please describe.
When clicking on the scrollbar to scroll a page,
onClickOutside
is triggered and closes the datepicker.Describe the solution you'd like
react-onclickoutside
offers theexcludeScrollbar
parameter to ignore scrollbar clicks.I'm working on a Pull Request right now to enable this parameter and set as true by default.
Describe alternatives you've considered
none
Additional context
This parameter is only in effect when the user's screen has scrollbars constantly visible.
If your scrollbars hide automatically, a click in their area does not count as a scrollbar click and will still trigger
onClickOutside
. And this is because of howreact-onclickoutside
compares the click coordinates to the documentElement. And documentElement clientWidth/clientHeight are different depending on your default scrollbar settings.The text was updated successfully, but these errors were encountered: