File tree Expand file tree Collapse file tree 3 files changed +17
-16
lines changed
Expand file tree Collapse file tree 3 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @netojose/react-select-datepicker" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "description" : " A lightweight select date picker" ,
55 "main" : " ./dist/index.js" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -103,20 +103,21 @@ export default ({
103103
104104 return (
105105 < div className = { cls } css = { css } >
106- { fields . map ( field => (
107- < Field
108- key = { field }
109- items = { options [ field ] }
110- label = { labels [ field ] }
111- showLabel = { showLabels }
112- value = { values [ field ] }
113- onChange = { handleChange }
114- name = { field }
115- renderOption = { field === "day" ? v => dayPad ( v ) : null }
116- generateValue = { field === "month" ? ( _ , index ) => index : null }
117- />
118- ) ) }
119-
106+ < div >
107+ { fields . map ( field => (
108+ < Field
109+ key = { field }
110+ items = { options [ field ] }
111+ label = { labels [ field ] }
112+ showLabel = { showLabels }
113+ value = { values [ field ] }
114+ onChange = { handleChange }
115+ name = { field }
116+ renderOption = { field === "day" ? v => dayPad ( v ) : null }
117+ generateValue = { field === "month" ? ( _ , index ) => index : null }
118+ />
119+ ) ) }
120+ </ div >
120121 { validationError && showErrors && < p > { errors [ validationError ] } </ p > }
121122 </ div >
122123 ) ;
You can’t perform that action at this time.
0 commit comments