You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When we render a DatePicker with toggleCalendarOnIconClick prop, we should be able to toggle the open state of the calendar by clicking on the Calendar Icon. However we can only able to open the calendar using the icon, when we try to close it by reclicking on that icon, it's getting closed. But however it's getting reopened automatically.
To Reproduce
Steps to reproduce the behavior:
Click on the calendar icon. The Datepicker will open
Reclick the calendar icon. Instead of closing the calendar, it'll close and reopen
Describe the bug
When we render a DatePicker with
toggleCalendarOnIconClickprop, we should be able to toggle the open state of the calendar by clicking on the Calendar Icon. However we can only able to open the calendar using the icon, when we try to close it by reclicking on that icon, it's getting closed. But however it's getting reopened automatically.To Reproduce
Steps to reproduce the behavior:
React-Datepicker-crafted-by-HackerOne.8.mp4
Expected behavior
As per the prop name
toggleCalendarOnIconClick, it should properly toggle the calendar open state.Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.