Skip to content

Commit

Permalink
feat(calendar-input): add popover z-index (#924)
Browse files Browse the repository at this point in the history
Co-authored-by: Egor Malishevski <emalishevskiy@alfabank.ru>
  • Loading branch information
egor-malishevski and Egor Malishevski committed Dec 21, 2021
1 parent c4e0fe9 commit 378286d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/calendar-input/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ export type CalendarInputProps = Omit<DateInputProps, 'onChange' | 'mobileMode'>
*/
popoverPosition?: PopoverProps['position'];

/**
* z-index Popover
*/
zIndexPopover?: PopoverProps['zIndex'];

/**
* Календарь будет принимать ширину инпута
*/
Expand Down Expand Up @@ -171,6 +176,7 @@ export const CalendarInput = forwardRef<HTMLInputElement, CalendarInputProps>(
readOnly,
Calendar = DefaultCalendar,
popoverPosition = 'bottom-start',
zIndexPopover,
useAnchorWidth,
rightAddons,
...restProps
Expand Down Expand Up @@ -382,6 +388,7 @@ export const CalendarInput = forwardRef<HTMLInputElement, CalendarInputProps>(
offset={[0, 8]}
withTransition={false}
preventFlip={preventFlip}
zIndex={zIndexPopover}
>
{renderCalendar()}
</Popover>
Expand Down

0 comments on commit 378286d

Please sign in to comment.