Add please focusOnOpen for DatePicker by analogy with TimePicker
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
When you click on DatePicker, you can not immediately enter the date manually, at the same time in TimePicker it is implemented.
What does the proposed API look like?
Look here: https://github.com/react-component/time-picker/blob/master/src/Header.jsx
componentDidMount() {
if (this.props.focusOnOpen) {
// Wait one frame for the panel to be positioned before focusing
const requestAnimationFrame = (window.requestAnimationFrame || window.setTimeout);
requestAnimationFrame(() => {
this.refs.input.focus();
this.refs.input.select();
});
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
jQuery Datepicker and Timepicker for same input field to ...
Let the datepicker write the base value of the input, and have the timepicker append it's value following a space to the same...
Read more >KendoReact DatePicker custom calendar no focus on open
When default KendoReact DatePicker is opened field gains autofocus on open. due to this when you click somewhere else on the page calendar ......
Read more >Is there a TIME PICKER? - Power Platform Community
I have a datepicker that I use for filtering my results. ... Please help me how to insert this function on the EDIT...
Read more >Adding a Timepicker to jQuery UI Datepicker - Trent Richardson
jQuery Timepicker Addon. Add a timepicker to your jQuery UI Datepicker. With options to show only time, format time, and much more.
Read more >Datepicker, Timepicker & Select issues - MDBootstrap
Topic: Datepicker, Timepicker & Select issues ... Please visit link... ... will add wrapper with position relative it will be positioning to this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @chenshuai2144 Do you have permissions to review the referenced PR ?
I temporarily use this solution, because there is no access to the input field by refs. Of course this is a hack, because in fact I get into the DOM…