From 924b64f38dbe6018b2a98101c8975b4a476183d8 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Tue, 5 Mar 2019 17:12:46 +0200 Subject: [PATCH 1/2] Placeholder values was not set which caused first real value to be selected by default --- .../FieldBirthdayInput/FieldBirthdayInput.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/FieldBirthdayInput/FieldBirthdayInput.js b/src/components/FieldBirthdayInput/FieldBirthdayInput.js index fe90df08..6152592e 100644 --- a/src/components/FieldBirthdayInput/FieldBirthdayInput.js +++ b/src/components/FieldBirthdayInput/FieldBirthdayInput.js @@ -155,7 +155,9 @@ class BirthdayInputComponent extends Component { onBlur={() => this.handleSelectBlur()} onChange={e => this.handleSelectChange('day', e.target.value)} > - + {days.map(d => ( + {months.map(m => ( + {years.map(y => (