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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sai6855
Copy link
Contributor

@sai6855 sai6855 commented Oct 22, 2024

This PR adds missing onMouseDown type to AutocompleteRenderInputParams

@sai6855 sai6855 marked this pull request as draft October 22, 2024 12:51
@@ -81,6 +81,7 @@ export interface AutocompleteRenderInputParams {
className: string;
startAdornment: React.ReactNode;
endAdornment: React.ReactNode;
onMouseDown: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
Copy link
Contributor Author

@sai6855 sai6855 Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onMouseDown is passed to renderInput args, but the type doesn't reflect that:

@oliviertassinari oliviertassinari added typescript component: autocomplete This is the name of the generic UI component, not the React module! labels Oct 22, 2024
@mui-bot
Copy link

mui-bot commented Oct 22, 2024

Netlify deploy preview

https://deploy-preview-44183--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 513acc9

@sai6855 sai6855 marked this pull request as ready for review October 22, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autocomplete This is the name of the generic UI component, not the React module! typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants