Skip to content

Commit

Permalink
fix(datepicker): revert to conditional ref for selected calendar day
Browse files Browse the repository at this point in the history
  • Loading branch information
jaketrent committed Nov 12, 2020
1 parent 56abc3a commit 17a8ec0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/datepicker/src/react/calendar.tsx
Expand Up @@ -142,7 +142,6 @@ export const Calendar: FC<CalendarProps> = props => {
onClick={evt => handleDayClick(evt, dateForCalendarDayNoTime)}
{...styles.day(isSelected)}
{...(isSelected && { ref: selectedDayRef })}
ref={selectedDayRef}
>
{dateForCalendarDayNoTime.getDate()}
</button>
Expand Down

0 comments on commit 17a8ec0

Please sign in to comment.