Skip to content

Commit

Permalink
[mui-material][Select] Omit placeholder from props (#44502)
Browse files Browse the repository at this point in the history
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: Aarón García Hervás <aaron@mui.com>
  • Loading branch information
Juneezee and aarongarciah authored Nov 25, 2024
1 parent 619262d commit 8ac260c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/mui-material/src/Select/Select.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { FilledInputProps } from '../FilledInput';
export { SelectChangeEvent };

export interface BaseSelectProps<Value = unknown>
extends StandardProps<InputProps, 'value' | 'onChange'> {
extends StandardProps<InputProps, 'value' | 'onChange' | 'placeholder'> {
/**
* If `true`, the width of the popover will automatically be set according to the items inside the
* menu, otherwise it will be at least the width of the select input.
Expand Down Expand Up @@ -152,7 +152,10 @@ export interface BaseSelectProps<Value = unknown>
}

export interface FilledSelectProps
extends Omit<FilledInputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
extends Omit<
FilledInputProps,
'value' | 'onChange' | 'id' | 'classes' | 'inputProps' | 'placeholder'
> {
/**
* The variant to use.
* @default 'outlined'
Expand All @@ -161,7 +164,7 @@ export interface FilledSelectProps
}

export interface StandardSelectProps
extends Omit<InputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
extends Omit<InputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps' | 'placeholder'> {
/**
* The variant to use.
* @default 'outlined'
Expand All @@ -170,7 +173,10 @@ export interface StandardSelectProps
}

export interface OutlinedSelectProps
extends Omit<OutlinedInputProps, 'value' | 'onChange' | 'id' | 'classes' | 'inputProps'> {
extends Omit<
OutlinedInputProps,
'value' | 'onChange' | 'id' | 'classes' | 'inputProps' | 'placeholder'
> {
/**
* The variant to use.
* @default 'outlined'
Expand Down

0 comments on commit 8ac260c

Please sign in to comment.