diff --git a/packages/vkui/src/components/AdaptivityProvider/AdaptivityProvider.test.tsx b/packages/vkui/src/components/AdaptivityProvider/AdaptivityProvider.test.tsx index 0101e7028e..d31faea755 100644 --- a/packages/vkui/src/components/AdaptivityProvider/AdaptivityProvider.test.tsx +++ b/packages/vkui/src/components/AdaptivityProvider/AdaptivityProvider.test.tsx @@ -79,7 +79,7 @@ describe('AdaptivityProvider', () => { }); }); - baselineComponent(AdaptivityProvider, { forward: false, a11y: false }); + baselineComponent(AdaptivityProvider, { forward: false, a11y: false, getRootRef: false }); describe('without bridge', () => { it('should return undefined adaptivity props', () => { diff --git a/packages/vkui/src/components/Alert/Alert.tsx b/packages/vkui/src/components/Alert/Alert.tsx index 97705c83ef..f6f77a8422 100644 --- a/packages/vkui/src/components/Alert/Alert.tsx +++ b/packages/vkui/src/components/Alert/Alert.tsx @@ -7,7 +7,7 @@ import { usePlatform } from '../../hooks/usePlatform'; import { useWaitTransitionFinish } from '../../hooks/useWaitTransitionFinish'; import { Platform } from '../../lib/platform'; import { stopPropagation } from '../../lib/utils'; -import { AlignType, AnchorHTMLAttributesOnly, HasDataAttribute } from '../../types'; +import { AlignType, AnchorHTMLAttributesOnly, HasDataAttribute, HasRootRef } from '../../types'; import { useScrollLock } from '../AppRoot/ScrollContext'; import { ButtonProps } from '../Button/Button'; import { FocusTrap } from '../FocusTrap/FocusTrap'; @@ -31,7 +31,7 @@ export interface AlertActionInterface mode: AlertActionMode; } -export interface AlertProps extends React.HTMLAttributes { +export interface AlertProps extends React.HTMLAttributes, HasRootRef { actionsLayout?: 'vertical' | 'horizontal'; actionsAlign?: AlignType; actions?: AlertActionInterface[]; @@ -67,6 +67,7 @@ export const Alert = ({ renderAction, actionsAlign, dismissButtonMode = 'outside', + getRootRef, ...restProps }: AlertProps) => { const generatedId = useId(); @@ -124,7 +125,13 @@ export const Alert = ({ useScrollLock(); return ( - + { - baselineComponent(AppRoot); + baselineComponent(AppRoot, { getRootRef: false }); describe('Manages portal root in embedded mode', () => { describe('Creates & injects portal root', () => { it.each(['embedded', 'partial'] as const)('in %s mode', (mode) => { diff --git a/packages/vkui/src/components/CalendarRange/CalendarRange.tsx b/packages/vkui/src/components/CalendarRange/CalendarRange.tsx index aaaceae9c8..730d586465 100644 --- a/packages/vkui/src/components/CalendarRange/CalendarRange.tsx +++ b/packages/vkui/src/components/CalendarRange/CalendarRange.tsx @@ -59,7 +59,6 @@ export const CalendarRange = ({ shouldDisableDate, onClose, weekStartsOn = 1, - getRootRef, disablePickers, prevMonthAriaLabel, nextMonthAriaLabel, diff --git a/packages/vkui/src/components/ChipsSelect/ChipsSelect.tsx b/packages/vkui/src/components/ChipsSelect/ChipsSelect.tsx index d0211d5908..ada4694dad 100644 --- a/packages/vkui/src/components/ChipsSelect/ChipsSelect.tsx +++ b/packages/vkui/src/components/ChipsSelect/ChipsSelect.tsx @@ -137,7 +137,7 @@ export const ChipsSelect =