It is not possible to close `inline withPortal` picker without changing date
See original GitHub issueI have case similar to the case ‘Inline portal version’ from samples. I use button to show modal picker.
<DatePicker
selected={this.state.date}
onChange={this.handleDateChange}
withPortal
inline
/>
When picker is shown, there is no way to close picker without selecting different date. I’m not sure why, because the case with only withPortal
(ie. without inline
) works as expected (you can click background to close the modal). This can also be seen in demo Portal version
.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
React DatePicker how to open datepicker on click of icon
Just wrap DatePicker with label. All click inside label call focus on input, that open calendar. <label> <DatePicker/> </label>.
Read more >Set Date Picker options Service Portal snDatePicker Directive
Anyone know if it's possible to set any date picker options (minDate & maxDate) for the "sp-date-picker" directive? As I've tried.
Read more >React Datepicker crafted by HackerOne
A simple and reusable datepicker component for React. Installation. The package can be installed via NPM: npm install react-datepicker --save. Or by using...
Read more >Change how a date or time is displayed in a date picker, text ...
Browser-compatible form templates do not support the display of the date and time ... If you are working with a text box control...
Read more >How to Add DatePicker to React JS Application
A date picker, also known as a popup calendar, date and time picker, ... It is not possible to input an incorrect time...
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 Free
Top 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
That’s why there is another callback -
onClickOutside
to solve your problem.That solves my problem, thanks.