diff --git a/TUCalendar/TUCalendar/Views/TUCalendarDayView.m b/TUCalendar/TUCalendar/Views/TUCalendarDayView.m index 4d05e0b..17f109c 100644 --- a/TUCalendar/TUCalendar/Views/TUCalendarDayView.m +++ b/TUCalendar/TUCalendar/Views/TUCalendarDayView.m @@ -188,8 +188,8 @@ static CGFloat const kTodayLabelHeight = 12.f; [self updateBackgroundState]; - BOOL isLeftBackgroundViewShown = (state.selectionOptions & TUCalendarDayViewSelectionLeftFull) && !state.isInvisibleDay; - BOOL isRightBackgroundViewShown = (state.selectionOptions & TUCalendarDayViewSelectionRightFull) && !state.isInvisibleDay; + BOOL isLeftBackgroundViewShown = (state.selectionOptions & TUCalendarDayViewSelectionLeftFull); + BOOL isRightBackgroundViewShown = (state.selectionOptions & TUCalendarDayViewSelectionRightFull); BOOL isRangingText = isLeftBackgroundViewShown || isRightBackgroundViewShown || [self isTextRangeState]; self.leftBackgroundView.hidden = !isLeftBackgroundViewShown;