Skip to content

Commit

Permalink
feat(select): добавлено свойство z-index для поповера (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
iishabakaev committed Nov 8, 2021
1 parent 3d8a887 commit 4a53483
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/select/src/components/base-select/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const BaseSelect = forwardRef(
Optgroup = () => null,
Option = () => null,
updatePopover,
zIndexPopover,
showEmptyOptionsList = false,
visibleOptions,
}: BaseSelectProps,
Expand Down Expand Up @@ -422,6 +423,7 @@ export const BaseSelect = forwardRef(
preventFlip={preventFlip}
popperClassName={styles.popoverInner}
update={updatePopover}
zIndex={zIndexPopover}
>
{needRenderOptionsList && (
<div
Expand Down
5 changes: 5 additions & 0 deletions packages/select/src/typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@ export type BaseSelectProps = {
*/
updatePopover?: PopoverProps['update'];

/**
* z-index поповера
*/
zIndexPopover?: PopoverProps['zIndex'];

/**
* Показывать OptionsList, если он пустой
*/
Expand Down

0 comments on commit 4a53483

Please sign in to comment.