Skip to content

Commit

Permalink
fix: remove maxHeight props from DateRangeInput, DateInput and Custom…
Browse files Browse the repository at this point in the history
…Select (#7408)

Убрал проп maxHeight в компонентах DateRangeInput, DateInput и CustomSelect так как он там не нужен и только смущает пользователей
  • Loading branch information
EldarMuhamethanov authored and actions-user committed Aug 20, 2024
1 parent 13258fe commit 99aa649
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/vkui/src/components/CustomSelect/CustomSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export type { CustomSelectClearButtonProps, CustomSelectOptionInterface, CustomS
export interface SelectProps<
OptionInterfaceT extends CustomSelectOptionInterface = CustomSelectOptionInterface,
> extends NativeSelectProps,
FormFieldProps,
Omit<FormFieldProps, 'maxHeight'>,
TrackerOptionsProps,
Pick<
CustomSelectDropdownProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface CustomSelectInputProps
HasRef<HTMLInputElement>,
HasRootRef<HTMLDivElement>,
HasAlign,
Omit<FormFieldProps, 'mode' | 'type'> {
Omit<FormFieldProps, 'mode' | 'type' | 'maxHeight'> {
selectType?: SelectType;
multiline?: boolean;
labelTextTestId?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/vkui/src/components/DateInput/DateInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface DateInputProps
| 'maxDateTime'
>,
HasRootRef<HTMLDivElement>,
FormFieldProps {
Omit<FormFieldProps, 'maxHeight'> {
calendarPlacement?: PlacementWithAuto;
closeOnChange?: boolean;
clearFieldLabel?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface DateRangeInputProps
| 'nextMonthIcon'
>,
HasRootRef<HTMLDivElement>,
FormFieldProps {
Omit<FormFieldProps, 'maxHeight'> {
calendarPlacement?: PlacementWithAuto;
closeOnChange?: boolean;
clearFieldLabel?: string;
Expand Down
1 change: 0 additions & 1 deletion packages/vkui/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const Select = <OptionT extends CustomSelectOptionInterface>({
nativeSelectTestId,
after,
mode,
maxHeight,
getSelectInputRef,
overscrollBehavior,
beforeAlign,
Expand Down

0 comments on commit 99aa649

Please sign in to comment.