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/dist/cjs/index.js CHANGED
@@ -1385,7 +1385,7 @@ const SimpleDateChooser = (props) => {
1385
1385
  const dayOptions = [];
1386
1386
  choices.forEach((choice) => {
1387
1387
  // Create month option
1388
- monthOptions.push(React__default["default"].createElement("option", { key: choice.month, value: choice.month, "aria-label": `choose ${choice.choiceName}`, onSelect: () => {
1388
+ monthOptions.push(React__default["default"].createElement("option", { key: choice.month, value: `${choice.month}-${choice.year}`, "aria-label": `choose ${choice.choiceName}`, onSelect: () => {
1389
1389
  onChange(choice.month, choice.days[0], choice.year);
1390
1390
  } }, choice.choiceName));
1391
1391
  if (month === choice.month) {
@@ -1400,7 +1400,7 @@ const SimpleDateChooser = (props) => {
1400
1400
  }
1401
1401
  });
1402
1402
  return (React__default["default"].createElement("div", { className: "SimpleDateChooser d-inline-block", "aria-label": `date chooser with selected date: ${month} ${day}, ${year}` },
1403
- React__default["default"].createElement("select", { "aria-label": `month for ${ariaLabel}`, className: "custom-select d-inline-block mr-1", style: { width: 'auto' }, id: `SimpleDateChooser-${name}-month`, value: month, onChange: (e) => {
1403
+ React__default["default"].createElement("select", { "aria-label": `month for ${ariaLabel}`, className: "custom-select d-inline-block mr-1", style: { width: 'auto' }, id: `SimpleDateChooser-${name}-month`, value: `${month}-${year}`, onChange: (e) => {
1404
1404
  const choice = choices[e.target.selectedIndex];
1405
1405
  // Change day, month, and year
1406
1406
  onChange(choice.month, choice.days[0], choice.year);