@@ -19,8 +19,8 @@ import MUIFormControlLabel, { formControlLabelClasses } from '@mui/material/Form
19
19
import MUISelect from '@mui/material/Select' ;
20
20
import MUISwitch from '@mui/material/Switch' ;
21
21
import MUIButton from '@mui/material/Button' ;
22
- import MUIIconButton from '@mui/material/IconButton' ;
23
- import MUIInputAdornment from '@mui/material/InputAdornment' ;
22
+ import MUIIconButton , { iconButtonClasses } from '@mui/material/IconButton' ;
23
+ import MUIInputAdornment , { inputAdornmentClasses } from '@mui/material/InputAdornment' ;
24
24
import MUITooltip from '@mui/material/Tooltip' ;
25
25
import MUIPopper , { PopperProps as MUIPopperProps } from '@mui/material/Popper' ;
26
26
import MUIClickAwayListener from '@mui/material/ClickAwayListener' ;
@@ -172,7 +172,7 @@ const baseSlots: GridBaseSlots = {
172
172
baseTextField : BaseTextField ,
173
173
baseButton : MUIButton ,
174
174
baseIconButton : MUIIconButton ,
175
- baseInputAdornment : MUIInputAdornment ,
175
+ baseInputAdornment : BaseInputAdornment ,
176
176
baseTooltip : MUITooltip ,
177
177
basePopper : BasePopper ,
178
178
baseInputLabel : MUIInputLabel ,
@@ -463,3 +463,16 @@ function BaseSelectOption({ native, ...props }: NonNullable<GridSlotProps['baseS
463
463
}
464
464
return < MUIMenuItem { ...props } /> ;
465
465
}
466
+
467
+ function BaseInputAdornment ( props : GridSlotProps [ 'baseInputAdornment' ] ) {
468
+ return (
469
+ < MUIInputAdornment
470
+ sx = { {
471
+ [ `&.${ inputAdornmentClasses . positionEnd } .${ iconButtonClasses . sizeSmall } ` ] : {
472
+ marginRight : '-7px' ,
473
+ } ,
474
+ } }
475
+ { ...props }
476
+ />
477
+ ) ;
478
+ }
0 commit comments