You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
danilo-leal
changed the title
The docs do not show label as required, the typing seems fine but there should be a required asterisk next to it on this page https://mui.com/api/form-control-label/#main-content
[docs] FormContro; The docs do not show label as required, the typing seems fine but there should be a required asterisk next to it on this page https://mui.com/api/form-control-label/#main-content
Apr 7, 2022
danilo-leal
changed the title
[docs] FormContro; The docs do not show label as required, the typing seems fine but there should be a required asterisk next to it on this page https://mui.com/api/form-control-label/#main-content
[docs] FormControl's API page doesn't show label as required
Apr 7, 2022
This will likely require a change in the scripts we use to generate the documentation.
Currently, we analyze prop types and figure out if a prop is required based on them.
We can't, however, change the prop type of label to PropTypes.node.isRequired as it won't allow passing in undefined (which is required, as per #31139).
This wouldn't be a problem if we instead relied on type definitions and the existence of ?: vs :.
The docs do not show
label
as required, the typing seems fine but there should be a required asterisk next to it on this page https://mui.com/api/form-control-label/#main-contentOriginally posted by @CWSites in #29301 (comment)
The text was updated successfully, but these errors were encountered: