dce-reactkit 3.2.2-beta.51 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.2.2-beta.51",
3
+ "version": "3.2.2-beta.52",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -141,7 +141,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
141
141
  monthOptions.push(
142
142
  <option
143
143
  key={choice.month}
144
- value={choice.month}
144
+ value={`${choice.month}-${choice.year}`}
145
145
  aria-label={`choose ${choice.choiceName}`}
146
146
  onSelect={() => {
147
147
  onChange(choice.month, choice.days[0], choice.year);
@@ -181,7 +181,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
181
181
  className="custom-select d-inline-block mr-1"
182
182
  style={{ width: 'auto' }}
183
183
  id={`SimpleDateChooser-${name}-month`}
184
- value={month}
184
+ value={`${month}-${year}`}
185
185
  onChange={(e) => {
186
186
  const choice = choices[e.target.selectedIndex];
187
187