Skip to content

Commit

Permalink
fix(Popover): revert customMiddlewares prop (#7134)
Browse files Browse the repository at this point in the history
Возвращаем параметр, который удалили в v6.0.0.
  • Loading branch information
inomdzhon authored Jul 5, 2024
1 parent f49dd16 commit af99788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vkui/src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ type AllowedFloatingComponentProps = Pick<
| 'children'
| 'zIndex'
| 'disableFlipMiddleware'
| 'customMiddlewares'
>;

/**
Expand Down Expand Up @@ -145,6 +146,7 @@ export const Popover = ({
disableCloseOnClickOutside,
disableCloseOnEscKey,
keepMounted = false,
customMiddlewares,
// uncontrolled
defaultShown = false,
// controlled
Expand Down Expand Up @@ -181,6 +183,7 @@ export const Popover = ({
sameWidth,
hideWhenReferenceHidden,
disableFlipMiddleware,
customMiddlewares,
});
const {
placement: resolvedPlacement,
Expand Down

0 comments on commit af99788

Please sign in to comment.