Skip to content

Commit

Permalink
Don't pass unused props to NativeSelect (#6663)
Browse files Browse the repository at this point in the history
Исключаем передачу неиспользуемых Select пропсов в NativeSelect.
  • Loading branch information
mendrew authored Mar 7, 2024
1 parent 90cd60e commit 39192cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vkui/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ export const Select = <OptionT extends CustomSelectOptionInterface>({
icon,
ClearButton,
allowClearButton,
clearButtonTestId,
dropdownOffsetDistance,
dropdownAutoWidth,
forceDropdownPortal,
selectType,
noMaxHeight,
autoHideScrollbar,
autoHideScrollbarDelay,
labelTextTestId,
nativeSelectTestId,
...nativeProps // TODO: https://github.com/Microsoft/TypeScript/issues/12936
} = props;

Expand Down

0 comments on commit 39192cc

Please sign in to comment.