[Datepicker] Fixes 'date picker text not updated'

#1237