Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Autocomplete] Add missing onMouseDown type to AutocompleteRenderInputParams #44183

Merged
merged 5 commits into from
Oct 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add test
  • Loading branch information
sai6855 committed Oct 22, 2024
commit 55a0236962dccf73b448b45b9687d93820860d9e
9 changes: 9 additions & 0 deletions packages/mui-material/src/Autocomplete/Autocomplete.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ function MyAutocomplete<
renderInput={() => null}
/>;

// Tests presence of onMouseDown prop in InputProps
<Autocomplete
options={['1', '2', '3']}
renderInput={(params) => {
console.log(params.InputProps.onMouseDown);
aarongarciah marked this conversation as resolved.
Show resolved Hide resolved
return <TextField {...params} />;
}}
/>;

<MyAutocomplete
options={['1', '2', '3']}
onChange={(event, value) => {
Expand Down
Loading