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/esm/index.js
CHANGED
|
@@ -1379,7 +1379,7 @@ const SimpleDateChooser = (props) => {
|
|
|
1379
1379
|
const dayOptions = [];
|
|
1380
1380
|
choices.forEach((choice) => {
|
|
1381
1381
|
// Create month option
|
|
1382
|
-
monthOptions.push(React.createElement("option", { key: choice.month
|
|
1382
|
+
monthOptions.push(React.createElement("option", { key: `${choice.year}-${choice.month}`, value: `${choice.month}-${choice.year}`, "aria-label": `choose ${choice.choiceName}`, onSelect: () => {
|
|
1383
1383
|
onChange(choice.month, choice.days[0], choice.year);
|
|
1384
1384
|
} }, choice.choiceName));
|
|
1385
1385
|
if (month === choice.month) {
|
|
@@ -1387,7 +1387,7 @@ const SimpleDateChooser = (props) => {
|
|
|
1387
1387
|
// Create day options
|
|
1388
1388
|
choice.days.forEach((dayChoice) => {
|
|
1389
1389
|
const ordinal = getOrdinal(dayChoice);
|
|
1390
|
-
dayOptions.push(React.createElement("option", { key: dayChoice
|
|
1390
|
+
dayOptions.push(React.createElement("option", { key: `${choice.year}-${choice.month}-${dayChoice}`, value: dayChoice, "aria-label": `choose date ${dayChoice}` },
|
|
1391
1391
|
dayChoice,
|
|
1392
1392
|
ordinal));
|
|
1393
1393
|
});
|