fix(ui/date-range): fix bug when initialized to a custom range