Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai committed May 3, 2024
1 parent 70c7e0e commit bf3c73b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
7 changes: 3 additions & 4 deletions packages/mui-material/src/InputBase/InputBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,12 @@ const InputBase = React.forwardRef(function InputBase(inProps, ref) {
{!disableInjectingGlobalStyles && inputGlobalStyles}
<Root
{...rootProps}
{...(!isHostComponent(Root) && {
ownerState: { ...ownerState, ...rootProps.ownerState },
})}
ref={ref}
onClick={handleClick}
{...other}
{...(!isHostComponent(Root) && {
ownerState: { ...ownerState, ...rootProps.ownerState },
})}
className={clsx(
classes.root,
{
Expand All @@ -533,7 +533,6 @@ const InputBase = React.forwardRef(function InputBase(inProps, ref) {
{startAdornment}
<FormControlContext.Provider value={null}>
<Input
ownerState={ownerState}
aria-invalid={fcs.error}
aria-describedby={ariaDescribedby}
autoComplete={autoComplete}
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/InputLabel/InputLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ const InputLabel = React.forwardRef(function InputLabel(inProps, ref) {
return (
<InputLabelRoot
data-shrink={shrink}
ownerState={ownerState}
ref={ref}
className={clsx(classes.root, className)}
{...other}
ownerState={ownerState}
classes={classes}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Select/SelectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ const SelectInput = React.forwardRef(function SelectInput(props, ref) {
disabled={disabled}
className={classes.nativeInput}
autoFocus={autoFocus}
ownerState={ownerState}
{...other}
ownerState={ownerState}
/>
<SelectIcon as={IconComponent} className={classes.icon} ownerState={ownerState} />
<Menu
Expand Down
2 changes: 2 additions & 0 deletions packages/mui-material/src/TextField/TextField.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ describe('<TextField />', () => {
slots: {
input: {
testWithComponent: TestComponent,
testWithElement: null,
},
inputLabel: {},
htmlInput: {
Expand All @@ -56,6 +57,7 @@ describe('<TextField />', () => {
slots: {
select: {
testWithComponent: TestComponent,
testWithElement: null,
},
},
only: ['slotsProp', 'slotPropsProp', 'slotPropsCallback'],
Expand Down

0 comments on commit bf3c73b

Please sign in to comment.