From 2a69f83cdeb11a5c1def4d7c56edd5b297a6f675 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 9 May 2020 11:55:50 +0100 Subject: [PATCH] feat(datepickerwithlabelformgroup.tsx): add year selector dropdown Added year select dropdown to date picker (used for entering new patients' DOB) --- src/components/input/DatePickerWithLabelFormGroup.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/input/DatePickerWithLabelFormGroup.tsx b/src/components/input/DatePickerWithLabelFormGroup.tsx index 777b69326e..ea9b923fc0 100644 --- a/src/components/input/DatePickerWithLabelFormGroup.tsx +++ b/src/components/input/DatePickerWithLabelFormGroup.tsx @@ -40,6 +40,7 @@ const DatePickerWithLabelFormGroup = (props: Props) => { disabled={!isEditable} feedback={feedback} isInvalid={isInvalid} + showYearDropdown onChange={(inputDate) => { if (onChange) { onChange(inputDate)