diff --git a/src/components/FeedHeader/components/Controls/customRenders.tsx b/src/components/FeedHeader/components/Controls/customRenders.tsx index 206ba8c..47fb886 100644 --- a/src/components/FeedHeader/components/Controls/customRenders.tsx +++ b/src/components/FeedHeader/components/Controls/customRenders.tsx @@ -40,7 +40,7 @@ export const renderSwitcher: RenderSwitcherType = /> ); -export const renderFilter: SelectProps['renderFilter'] = ({value, onChange, onKeyDown, ref}) => ( +export const renderFilter: SelectProps['renderFilter'] = ({value, onChange, onKeyDown}) => ( ); diff --git a/src/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.tsx b/src/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.tsx index c65ed5f..255cb76 100644 --- a/src/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.tsx +++ b/src/components/FeedHeader/components/CustomSwitcher/CustomSwitcher.tsx @@ -1,4 +1,4 @@ -import React, {LegacyRef, useMemo} from 'react'; +import React, {LegacyRef, MouseEvent, useMemo} from 'react'; import {Icon, SelectProps} from '@gravity-ui/uikit'; @@ -42,6 +42,11 @@ export const CustomSwitcher = ({ }, [defaultLabel, initial, list]); const hasCounter = itemsNames.length > 1; + const handleClick = (e: MouseEvent) => { + e.currentTarget.focus(); + onClick?.(); + }; + return (