Skip to content

Commit

Permalink
[core] Fix CI failure on master (#37016)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Apr 25, 2023
1 parent 9fe2e1a commit 8e8442b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ describe('Joy <Autocomplete />', () => {
it('should trigger a form expectedly', () => {
const handleSubmit = spy();
function Test(props: any) {
const { key, ...others } = props;
return (
<div
onKeyDown={(event) => {
Expand All @@ -589,7 +590,7 @@ describe('Joy <Autocomplete />', () => {
}
}}
>
<Autocomplete autoFocus options={['one', 'two']} {...props} />
<Autocomplete autoFocus options={['one', 'two']} key={key} {...others} />
</div>
);
}
Expand Down
4 changes: 3 additions & 1 deletion packages/mui-material/src/Autocomplete/Autocomplete.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ describe('<Autocomplete />', () => {
it('should trigger a form expectedly', () => {
const handleSubmit = spy();
function Test(props) {
const { key, ...others } = props;
return (
<div
onKeyDown={(event) => {
Expand All @@ -737,7 +738,8 @@ describe('<Autocomplete />', () => {
<Autocomplete
options={['one', 'two']}
renderInput={(props2) => <TextField {...props2} autoFocus />}
{...props}
key={key}
{...others}
/>
</div>
);
Expand Down

0 comments on commit 8e8442b

Please sign in to comment.