dce-reactkit 3.2.2-beta.50 → 3.2.2-beta.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +15 -15
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +15 -15
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/SimpleDateChooser.tsx +3 -7
package/package.json
CHANGED
|
@@ -62,11 +62,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
|
|
|
62
62
|
onChange,
|
|
63
63
|
chooseFromPast,
|
|
64
64
|
} = props;
|
|
65
|
-
|
|
66
|
-
(props.numMonthsToShow ?? 6),
|
|
67
|
-
1,
|
|
68
|
-
12,
|
|
69
|
-
);
|
|
65
|
+
const numMonthsToShow = (props.numMonthsToShow ?? 6);
|
|
70
66
|
|
|
71
67
|
/*------------------------------------------------------------------------*/
|
|
72
68
|
/* Render */
|
|
@@ -145,7 +141,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
|
|
|
145
141
|
monthOptions.push(
|
|
146
142
|
<option
|
|
147
143
|
key={choice.month}
|
|
148
|
-
value={choice.month}
|
|
144
|
+
value={`${choice.month}-${choice.year}`}
|
|
149
145
|
aria-label={`choose ${choice.choiceName}`}
|
|
150
146
|
onSelect={() => {
|
|
151
147
|
onChange(choice.month, choice.days[0], choice.year);
|
|
@@ -185,7 +181,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
|
|
|
185
181
|
className="custom-select d-inline-block mr-1"
|
|
186
182
|
style={{ width: 'auto' }}
|
|
187
183
|
id={`SimpleDateChooser-${name}-month`}
|
|
188
|
-
value={month}
|
|
184
|
+
value={`${month}-${year}`}
|
|
189
185
|
onChange={(e) => {
|
|
190
186
|
const choice = choices[e.target.selectedIndex];
|
|
191
187
|
|