Skip to content

Commit

Permalink
fix(ModalCard): exclude unused shouldPreserveSnapPoint (#8033)
Browse files Browse the repository at this point in the history
Параметр попадал в DOM
  • Loading branch information
inomdzhon authored and actions-user committed Dec 3, 2024
1 parent cc0a49e commit 12abe6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/vkui/src/components/ModalCard/ModalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ export const ModalCard = ({
const generatingId = useId();
const id = getNavId({ nav, id: idProp }, warn) || generatingId;

const { mounted, ...resolvedProps } = useModalManager({
const {
mounted,
shouldPreserveSnapPoint: excludedProp,
...resolvedProps
} = useModalManager({
id,
open,
keepMounted,
Expand Down

0 comments on commit 12abe6d

Please sign in to comment.