Commit 95c3abc Peter Hellstrand
committed
1 parent da52d15 commit 95c3abc Copy full SHA for 95c3abc
File tree 1 file changed +2
-2
lines changed
packages/ffe-datepicker-react/src/datepicker
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ export const DatepickerComp: React.FC<DatepickerCompProps> = ({
288
288
min = { 1 }
289
289
max = { 12 }
290
290
onSpinButtonChange = { ( newValue , allowFocusNext = true ) => {
291
- onChange ( `${ newValue } .${ month } .${ year } ` ) ;
291
+ onChange ( `${ day } .${ newValue } .${ year } ` ) ;
292
292
return allowFocusNext
293
293
? setMonth ( newValue , ( ) =>
294
294
yearRef . current ?. focus ( {
@@ -323,7 +323,7 @@ export const DatepickerComp: React.FC<DatepickerCompProps> = ({
323
323
min = { 1 }
324
324
max = { 9999 }
325
325
onSpinButtonChange = { newValue => {
326
- onChange ( `${ newValue } .${ month } .${ year } ` ) ;
326
+ onChange ( `${ day } .${ month } .${ newValue } ` ) ;
327
327
setYear ( newValue ) ;
328
328
} }
329
329
prevSpinButton = { monthRef }
You can’t perform that action at this time.
0 commit comments