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 committed Mar 7, 2024
1 parent 96041fe commit 7912444
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,
fixDropdownWidth,
forceDropdownPortal,
selectType,
noMaxHeight,
autoHideScrollbar,
autoHideScrollbarDelay,
labelTextTestId,
nativeSelectTestId,
...nativeProps // TODO: https://github.com/Microsoft/TypeScript/issues/12936
} = props;

Expand Down

0 comments on commit 7912444

Please sign in to comment.