Description :
Currently, in our forms, when the calendar icon is clicked to select a date, it opens the calendar for the user to make a selection. However, if the calendar icon is clicked again, it does not hide the calendar. We need to implement a toggle functionality such that clicking the calendar icon once opens the calendar, and clicking it again hides the calendar.
Steps to Reproduce:
Open any form that includes a date picker.
Click on the calendar icon to open the calendar.
Click on the calendar icon again.
Expected Behavior:
The calendar should hide when the calendar icon is clicked a second time.
Actual Behavior:
The calendar remains visible when the calendar icon is clicked again.
Description : Currently, in our forms, when the calendar icon is clicked to select a date, it opens the calendar for the user to make a selection. However, if the calendar icon is clicked again, it does not hide the calendar. We need to implement a toggle functionality such that clicking the calendar icon once opens the calendar, and clicking it again hides the calendar.
Steps to Reproduce: Open any form that includes a date picker. Click on the calendar icon to open the calendar. Click on the calendar icon again.
Expected Behavior: The calendar should hide when the calendar icon is clicked a second time.
Actual Behavior: The calendar remains visible when the calendar icon is clicked again.