react-datetime-picker icon indicating copy to clipboard operation
react-datetime-picker copied to clipboard

Possibility to use only input field

Open marcoancona opened this issue 5 years ago • 2 comments

Can this component be used without the actual calendar picker (only the input field)? I have my own calendar widget and I would like to use display it when the input field gets on focus, is it possible? I don't see onFocus/onBlur events.

marcoancona avatar Oct 14 '18 00:10 marcoancona

You should be able to use onFocus starting with v1.7.0.

You can disable calendar icon by setting calendarIcon to null. You can't hide the calendar other than with CSS, but it's a valuable feedback!

wojtekmaj avatar Oct 24 '18 11:10 wojtekmaj

@wojtekmaj hello, I am trying to access onFocus and onBlur as well, for the overall datetime picker. I'm currently having the issue where every change in the values pushed into the picker is changing state, I would like to only change my state when the user has finished populating all the values. I'm using version 3.x of this library. I notice there's focus and blur events for the calendar and clock, but I can't seem to pinpoint or attach one to the overall component. Is there a current pattern for dealing with this use case?

Dgarc359 avatar May 02 '22 17:05 Dgarc359

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

github-actions[bot] avatar Feb 13 '23 01:02 github-actions[bot]

This issue was closed because it has been stalled for 14 days with no activity.

github-actions[bot] avatar Feb 27 '23 01:02 github-actions[bot]