Skip to content

Commit

Permalink
fix(ActonSheet): add FocusTrap props to ActionSheet props (#8057)
Browse files Browse the repository at this point in the history
  • Loading branch information
EldarMuhamethanov authored and actions-user committed Dec 10, 2024
1 parent d9ad9dc commit ea87d2b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/vkui/src/components/ActionSheet/ActionSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import * as React from 'react';
import { noop } from '@vkontakte/vkjs';
import { useAdaptivityWithJSMediaQueries } from '../../hooks/useAdaptivityWithJSMediaQueries';
import { type UseFocusTrapProps } from '../../hooks/useFocusTrap';
import { usePlatform } from '../../hooks/usePlatform';
import { useCSSKeyframesAnimationController } from '../../lib/animation';
import { AppRootPortal } from '../AppRoot/AppRootPortal';
Expand All @@ -22,10 +23,8 @@ export interface ActionSheetOnCloseOptions {
}

export interface ActionSheetProps
extends Pick<
SharedDropdownProps,
'toggleRef' | 'popupOffsetDistance' | 'placement' | 'autoFocus'
>,
extends Pick<SharedDropdownProps, 'toggleRef' | 'popupOffsetDistance' | 'placement'>,
Omit<UseFocusTrapProps, 'onClose'>,
Omit<React.HTMLAttributes<HTMLDivElement>, 'autoFocus' | 'title'> {
title?: React.ReactNode;
description?: React.ReactNode;
Expand Down

0 comments on commit ea87d2b

Please sign in to comment.