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
I followed instructions in documentation written for my React-Date-Picker version
I have checked if this bug is not already reported
Description
Kind of related to wojtekmaj/react-calendar#523
Kind of similar to 261 yet different. Also I saw @wojtekmaj somewhere else advised to wrap a Datepicker in a custom div to create any custom footer. However it triggers handleOnShouldClose with reason = 'outsideClick'.
Is there a way to still be able to close the calendar on outside click and be able to click on items inside custom footer?
In custom footer we've got a clear button, however any click outside <Datepicker .../> propagates handleOnShouldClose and closes the Datepicker (unless of course we set handleOnShouldClose => ({reason}) => reason !== outsideClick...)
Expected behavior
For example, define a classname of a wrapper to trigger 'outsideClick' on anything outside it
Actual behavior
Clicking on any custom component not inside actual datepicker triggers handleOnShouldClose
Additional information
No response
Environment
Browser (if applicable): any
React-Date-Picker version: "^10.5.0",
React version: 18
The text was updated successfully, but these errors were encountered:
Before you start - checklist
Description
Kind of related to wojtekmaj/react-calendar#523
Kind of similar to 261 yet different. Also I saw @wojtekmaj somewhere else advised to wrap a Datepicker in a custom div to create any custom footer. However it triggers handleOnShouldClose with reason = 'outsideClick'.
Is there a way to still be able to close the calendar on outside click and be able to click on items inside custom footer?
Steps to reproduce
Let's imagine the structure:
In custom footer we've got a clear button, however any click outside <Datepicker .../> propagates handleOnShouldClose and closes the Datepicker (unless of course we set handleOnShouldClose => ({reason}) => reason !== outsideClick...)
Expected behavior
For example, define a classname of a wrapper to trigger 'outsideClick' on anything outside it
Actual behavior
Clicking on any custom component not inside actual datepicker triggers handleOnShouldClose
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: