Skip to content

Commit

Permalink
fix(DateInput): fix open calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackySoul committed Jan 24, 2024
1 parent fdab21d commit 7263bb7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/vkui/src/components/DateInput/DateInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ export const DateInput = ({
calendarRef,
open,
openCalendar,
closeCalendar,
internalValue,
handleKeyDown,
setFocusedElement,
Expand Down Expand Up @@ -295,15 +294,20 @@ export const DateInput = ({
)}
</Text>
{open && !disableCalendar && (
<Popper targetRef={rootRef} offsetByMainAxis={8} placement={calendarPlacement}>
<Popper
targetRef={rootRef}
offsetByMainAxis={8}
placement={calendarPlacement}
autoUpdateOnTargetResize
>
<Calendar
value={value}
onChange={onCalendarChange}
enableTime={enableTime}
disablePast={disablePast}
disableFuture={disableFuture}
shouldDisableDate={shouldDisableDate}
onClose={closeCalendar}
onClose={removeFocusFromField}
getRootRef={calendarRef}
doneButtonText={doneButtonText}
disablePickers={disablePickers}
Expand Down

0 comments on commit 7263bb7

Please sign in to comment.