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/esm/index.js
CHANGED
|
@@ -1377,7 +1377,7 @@ const SimpleDateChooser = (props) => {
|
|
|
1377
1377
|
const dayOptions = [];
|
|
1378
1378
|
choices.forEach((choice) => {
|
|
1379
1379
|
// Create month option
|
|
1380
|
-
monthOptions.push(React.createElement("option", { key: choice.month, value: choice.month
|
|
1380
|
+
monthOptions.push(React.createElement("option", { key: choice.month, value: `${choice.month}-${choice.year}`, "aria-label": `choose ${choice.choiceName}`, onSelect: () => {
|
|
1381
1381
|
onChange(choice.month, choice.days[0], choice.year);
|
|
1382
1382
|
} }, choice.choiceName));
|
|
1383
1383
|
if (month === choice.month) {
|
|
@@ -1392,7 +1392,7 @@ const SimpleDateChooser = (props) => {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
});
|
|
1394
1394
|
return (React.createElement("div", { className: "SimpleDateChooser d-inline-block", "aria-label": `date chooser with selected date: ${month} ${day}, ${year}` },
|
|
1395
|
-
React.createElement("select", { "aria-label": `month for ${ariaLabel}`, className: "custom-select d-inline-block mr-1", style: { width: 'auto' }, id: `SimpleDateChooser-${name}-month`, value: month
|
|
1395
|
+
React.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) => {
|
|
1396
1396
|
const choice = choices[e.target.selectedIndex];
|
|
1397
1397
|
// Change day, month, and year
|
|
1398
1398
|
onChange(choice.month, choice.days[0], choice.year);
|