dce-reactkit 3.2.7 → 3.2.8

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.7",
3
+ "version": "3.2.8",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -140,7 +140,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
140
140
  // Create month option
141
141
  monthOptions.push(
142
142
  <option
143
- key={choice.month}
143
+ key={`${choice.year}-${choice.month}`}
144
144
  value={`${choice.month}-${choice.year}`}
145
145
  aria-label={`choose ${choice.choiceName}`}
146
146
  onSelect={() => {
@@ -158,7 +158,7 @@ const SimpleDateChooser: React.FC<Props> = (props) => {
158
158
  const ordinal = getOrdinal(dayChoice);
159
159
  dayOptions.push(
160
160
  <option
161
- key={dayChoice}
161
+ key={`${choice.year}-${choice.month}-${dayChoice}`}
162
162
  value={dayChoice}
163
163
  aria-label={`choose date ${dayChoice}`}
164
164
  >