We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da52d15 + 95c3abc commit 78a0149Copy full SHA for 78a0149
packages/ffe-datepicker-react/src/datepicker/DatepickerComp.tsx
@@ -288,7 +288,7 @@ export const DatepickerComp: React.FC<DatepickerCompProps> = ({
288
min={1}
289
max={12}
290
onSpinButtonChange={(newValue, allowFocusNext = true) => {
291
- onChange(`${newValue}.${month}.${year}`);
+ onChange(`${day}.${newValue}.${year}`);
292
return allowFocusNext
293
? setMonth(newValue, () =>
294
yearRef.current?.focus({
@@ -323,7 +323,7 @@ export const DatepickerComp: React.FC<DatepickerCompProps> = ({
323
324
max={9999}
325
onSpinButtonChange={newValue => {
326
+ onChange(`${day}.${month}.${newValue}`);
327
setYear(newValue);
328
}}
329
prevSpinButton={monthRef}
0 commit comments