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/dist/cjs/index.js CHANGED
@@ -1387,7 +1387,7 @@ const SimpleDateChooser = (props) => {
1387
1387
  const dayOptions = [];
1388
1388
  choices.forEach((choice) => {
1389
1389
  // Create month option
1390
- monthOptions.push(React__default["default"].createElement("option", { key: choice.month, value: `${choice.month}-${choice.year}`, "aria-label": `choose ${choice.choiceName}`, onSelect: () => {
1390
+ monthOptions.push(React__default["default"].createElement("option", { key: `${choice.year}-${choice.month}`, value: `${choice.month}-${choice.year}`, "aria-label": `choose ${choice.choiceName}`, onSelect: () => {
1391
1391
  onChange(choice.month, choice.days[0], choice.year);
1392
1392
  } }, choice.choiceName));
1393
1393
  if (month === choice.month) {
@@ -1395,7 +1395,7 @@ const SimpleDateChooser = (props) => {
1395
1395
  // Create day options
1396
1396
  choice.days.forEach((dayChoice) => {
1397
1397
  const ordinal = getOrdinal(dayChoice);
1398
- dayOptions.push(React__default["default"].createElement("option", { key: dayChoice, value: dayChoice, "aria-label": `choose date ${dayChoice}` },
1398
+ dayOptions.push(React__default["default"].createElement("option", { key: `${choice.year}-${choice.month}-${dayChoice}`, value: dayChoice, "aria-label": `choose date ${dayChoice}` },
1399
1399
  dayChoice,
1400
1400
  ordinal));
1401
1401
  });