Skip to content

Commit 79287fd

Browse files
committed
Add failing test for TextInput ref
1 parent f900373 commit 79287fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/text-input/src/TextInput/TextInput.spec.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ describe('packages/text-input', () => {
245245
<TextInput type="search" label="some label" />;
246246
<TextInput type="search" aria-labelledby="some label" />;
247247
});
248+
249+
test('TextInput takes a ref for a HTMLInputElement', () => {
250+
const ref = React.createRef<HTMLInputElement>();
251+
render(<TextInput ref={ref} />);
252+
});
248253
});
249254
/* eslint-enable jest/no-disabled-tests */
250255
});

0 commit comments

Comments
 (0)