tailwind-datepicker-react
tailwind-datepicker-react copied to clipboard
handleClickOutside doesn't work when providing own `input` element
handleClickOutside relies on refs to the input element and the picker modal, which are not available when using an individual input element.
You could add a blur listener to set the "show" state to false as a workaround here, I guess. Hope this helps :)
@carstenblt I've created a PR to pass inputRef with options: https://github.com/OMikkel/tailwind-datepicker-react/pull/53
You could add a blur listener to set the "show" state to false as a workaround
I tried this but that made the picker disappear before a value is chosen