-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[TextField] Improve IntelliSense support for props #36737
Conversation
Netlify deploy previewhttps://deploy-preview-36737--material-ui.netlify.app/ Bundle size report |
This comment was marked as outdated.
This comment was marked as outdated.
@@ -11,6 +11,22 @@ import { expectType } from '@mui/types'; | |||
<TextField variant="standard" InputProps={{ classes: { inputTypeSearch: 'search-input' } }} /> | |||
); | |||
|
|||
const StandardInputAdorned = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests for #36862
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to work well. But I'd like someone else to review before merging, in case I missed anything.
aa24cff
to
954ab7c
Compare
Michał didn't find any issues in his review, so it is ready to merge. Looks good to me as well. |
closes #36232
closes #36862
Description for #36232 :
From trial & error, i got to know Intellisense is not extracting description when type is
union type
and forconditional type
intellisense is able to correctly extract info.Since existing tests from this file has enough coverage, i haven't added any tests.
Before for #36232:
AFTER for #36232:
working code sandbox for #36232 : https://codesandbox.io/s/peaceful-rosalind-purnu8?file=/demo.tsx
before codesandbox for #36862 : https://codesandbox.io/s/infallible-haibt-ytenql?file=/styles.css:0-38
after codesandbox for #36862: https://codesandbox.io/s/goofy-leavitt-428poo?file=/demo.tsx