Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertCarreras committed Jan 8, 2025
1 parent 7e0f67e commit 85f924b
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,10 @@ const InternalDatePickerWithForwardRef = forwardRef<HTMLInputElement, InternalPr
| undefined,
) => {
if (controlledValue === undefined) setUncontrolledValue(value);
if (event !== undefined) {
onChange({ event, value });
if (event.type === 'click') {
nextRef?.current?.focus();
onSelect?.();
}
onChange({ event, value });
if (event?.type === 'click') {
nextRef?.current?.focus();
onSelect?.();
}
}}
onKeyDown={(event) => {
Expand Down

0 comments on commit 85f924b

Please sign in to comment.