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
At line 22 typescript throws error Property 'notched' does not exist on type 'IntrinsicAttributes & SelectProps<string>'
Context 馃敠
I was trying to create Select with InputLabel. Label is interfering with displayEmpty and renderValue for value: "". This could be a candidate for another issue.
I found out that you can add shrink: true to InputLabel and notched to Select to keep label always on top.
jrozbicki
changed the title
[Typescript] Select is not extending OutlinedInputProps
[Typescript] Select doesn't accept notched prop (missing extending OutlinedInputProps)
Feb 25, 2022
Duplicates
Latest version
Current behavior 馃槸
Typescript throws error when trying to pass
noched
option toSelect
component as props.Functionality works, just typescript is throwing errors.
Expected behavior 馃
Typescript not to throw error and accept inherited OutlinedInput props as stated in docs and Select.d.ts:
Steps to reproduce 馃暪
Steps:
Property 'notched' does not exist on type 'IntrinsicAttributes & SelectProps<string>'
Context 馃敠
I was trying to create Select with InputLabel. Label is interfering with
displayEmpty
andrenderValue
forvalue: ""
. This could be a candidate for another issue.I found out that you can add
shrink: true
toInputLabel
andnotched
toSelect
to keep label always on top.Your environment 馃寧
npx @mui/envinfo
tsconfig.json
The text was updated successfully, but these errors were encountered: