diff --git a/ui/components/component-library/text-field-base/text-field-base.js b/ui/components/component-library/text-field-base/text-field-base.js
index d29bedeb0..1bddc86e0 100644
--- a/ui/components/component-library/text-field-base/text-field-base.js
+++ b/ui/components/component-library/text-field-base/text-field-base.js
@@ -155,7 +155,7 @@ TextFieldBase.propTypes = {
/**
* Autocomplete allows the browser to predict the value based on earlier typed values
*/
- autoComplete: PropTypes.string,
+ autoComplete: PropTypes.bool,
/**
* If `true`, the input will be focused during the first mount.
*/
diff --git a/ui/components/component-library/text-field-base/text-field-base.test.js b/ui/components/component-library/text-field-base/text-field-base.test.js
index 0dbe61913..e032a6a5e 100644
--- a/ui/components/component-library/text-field-base/text-field-base.test.js
+++ b/ui/components/component-library/text-field-base/text-field-base.test.js
@@ -2,9 +2,10 @@
import React from 'react';
import { fireEvent, render } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
-
import { SIZES } from '../../../helpers/constants/design-system';
+import Box from '../../ui/box';
+
import { TextFieldBase } from './text-field-base';
describe('TextFieldBase', () => {
@@ -188,11 +189,7 @@ describe('TextFieldBase', () => {
});
it('should render with error className when error is true', () => {
const { getByTestId } = render(
- ,
+ ,
);
expect(getByTestId('text-field-base-error')).toHaveClass(
'mm-text-field-base--error',
@@ -236,7 +233,10 @@ describe('TextFieldBase', () => {
);
});
it('should render with a custom input and still work', () => {
- const CustomInputComponent = (props) => ;
+ const CustomInputComponent = React.forwardRef((props, ref) => (
+
+ ));
+ CustomInputComponent.displayName = 'CustomInputComponent'; // fixes eslint error
const { getByTestId } = render(