Skip to content

Commit 6a26923

Browse files
Merge pull request #1826 from DorianDeptuch/make-date-range-textboxes-clickable-in-search-and-filters-modal-#1806
Make date range textboxes clickable in Search and Filters modal
2 parents ce5d828 + addb400 commit 6a26923

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

components/common/DatePicker/DatePicker.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ const useStyles = makeStyles(theme => ({
2424
borderRadius: 5,
2525
fontSize: '12px',
2626
color: theme.palette.text.secondaryLight,
27+
'& > div': {
28+
cursor: 'pointer',
29+
},
2730
},
2831
placeholder: {
2932
color: theme.palette.text.secondaryDark,
@@ -112,7 +115,9 @@ function DatePicker({
112115
};
113116
return (
114117
<div ref={ref} className={classes.selector}>
115-
<div>{renderSelectedDays([startDate, endDate], classes, range)}</div>
118+
<div onClick={toggleCalendar}>
119+
{renderSelectedDays([startDate, endDate], classes, range)}
120+
</div>
116121
<IconButton
117122
className={classes.button}
118123
aria-label="toggle calendar datepicker"

0 commit comments

Comments
 (0)