Datepicker doesn't hide on outside click when using custom overlay #1120
Replies: 7 comments
-
Ran into the same problem. Going to do a bit of digging to see if I can find out why, but let me know if you've found a workaround |
Beta Was this translation helpful? Give feedback.
-
PR: #871 |
Beta Was this translation helpful? Give feedback.
-
As described in #871 I'm not sure how to patch the bug while maintaining standard behavior. |
Beta Was this translation helpful? Give feedback.
-
Here's a working implementation by driving showOverlay state from props: #872 |
Beta Was this translation helpful? Give feedback.
-
Hi there! I ran into the same issue when providing a custom input component to the @matthova Thanks for looking closer into this, I can see you tried a couple of implementations. Are there any plans to address this issue? What about known workarounds? In my opinion, this is quite a serious problem as I can imagine a considerable amount of users will want to provide their own input or overlay components. |
Beta Was this translation helpful? Give feedback.
-
@TSilviu the custom implementation shown in the examples in #872 has been working great for us. |
Beta Was this translation helpful? Give feedback.
-
Is this fixed ? @matthova I tried your custom example but its not working for me, any insights on this ? Also I am using this with formik |
Beta Was this translation helpful? Give feedback.
-
Try it here:
http://react-day-picker.js.org/examples/input-custom-overlay
Same problem occurs when using a custom navbar
Beta Was this translation helpful? Give feedback.
All reactions