diff --git a/packages/vkui/src/components/ChipsSelect/ChipsSelect.tsx b/packages/vkui/src/components/ChipsSelect/ChipsSelect.tsx index c6a6481f62..749423e8c4 100644 --- a/packages/vkui/src/components/ChipsSelect/ChipsSelect.tsx +++ b/packages/vkui/src/components/ChipsSelect/ChipsSelect.tsx @@ -31,7 +31,7 @@ import { isNotServicePreset, renderOptionDefault, } from './constants'; -import type { FocusActionType, OptionPreset } from './types'; +import type { FocusActionType } from './types'; import { useChipsSelect, type UseChipsSelectProps } from './useChipsSelect'; import styles from './ChipsSelect.module.css'; @@ -40,37 +40,6 @@ const stylesDropdownVerticalPlacement = { bottom: styles['ChipsSelect--pop-down'], } as const; -const findIndexAfter = ( - options: Array> = [], - startIndex = -1, -) => { - if (startIndex >= options.length - 1) { - return -1; - } - return options.findIndex( - (option, i) => i > startIndex && (!isNotServicePreset(option) || !option.disabled), - ); -}; - -const findIndexBefore = ( - options: Array> = [], - endIndex: number = options.length, -) => { - let result = -1; - if (endIndex <= 0) { - return result; - } - for (let i = endIndex - 1; i >= 0; i--) { - let option = options[i]; - - if (!isNotServicePreset(option) || !option.disabled) { - result = i; - break; - } - } - return result; -}; - export interface ChipsSelectProps extends ChipsInputBaseProps, UseChipsSelectProps, @@ -283,12 +252,6 @@ export const ChipsSelect =