diff --git a/packages/mui-material-next/src/InputBase/InputBase.test.tsx b/packages/mui-material-next/src/InputBase/InputBase.test.tsx
index 9211552d31bd9e..c183219600c51f 100644
--- a/packages/mui-material-next/src/InputBase/InputBase.test.tsx
+++ b/packages/mui-material-next/src/InputBase/InputBase.test.tsx
@@ -247,7 +247,8 @@ describe('', () => {
});
it('should inject onBlur and onFocus', () => {
- let injectedProps: any = {};
+ let injectedProps: Record = {};
+
const MyInputBase = React.forwardRef(function MyInputBase(
props: { ownerState: InputBaseOwnerState } & Record,
ref: React.ForwardedRef,
@@ -259,10 +260,8 @@ describe('', () => {
render();
- if (injectedProps) {
- expect(typeof injectedProps.onBlur).to.equal('function');
- expect(typeof injectedProps.onFocus).to.equal('function');
- }
+ expect(typeof injectedProps.onBlur).to.equal('function');
+ expect(typeof injectedProps.onFocus).to.equal('function');
});
describe('target mock implementations', () => {
diff --git a/packages/mui-material-next/src/InputBase/InputBase.tsx b/packages/mui-material-next/src/InputBase/InputBase.tsx
index 5121732480ba62..e5c01f9fc20a32 100644
--- a/packages/mui-material-next/src/InputBase/InputBase.tsx
+++ b/packages/mui-material-next/src/InputBase/InputBase.tsx
@@ -319,7 +319,7 @@ const InputBase = React.forwardRef(function InputBase<
const onFilled = muiFormControl && muiFormControl.onFilled;
const onEmpty = muiFormControl && muiFormControl.onEmpty;
- // TODO: needs material-next/Outlined|FilledInput
+ // TODO: needs material-next/OutlinedInput
const checkDirty = React.useCallback(
(obj: any) => {
if (isFilled(obj)) {