Describe the bug
I'm not sure if this is a bug or if it is designed in this way, but it's really weird.
When I am trying to set the component to only accept a specific file type and also show the AttachFileIcon (not sure if it is related to a specific icon and not tested), I get stuck cause of the wrong type and prop of the component.
To Reproduce
Using 4.0.4 version
Use the component, which should be able to only accept a specific type of file and show the icon
From the document, we can get a component like this to use the accept prop:
And I don't know if you noticed, but actually, there are two writing styles for the input-props, and they both indeed can work on version 4.0.4.
When I am trying to use:
Describe the bug I'm not sure if this is a bug or if it is designed in this way, but it's really weird. When I am trying to set the component to only accept a specific file type and also show the AttachFileIcon (not sure if it is related to a specific icon and not tested), I get stuck cause of the wrong type and prop of the component.
To Reproduce
And for rendering the icon, I haven't found it in the document but the source code in this repo for the main page of the document:
And I don't know if you noticed, but actually, there are two writing styles for the
input-props
, and they both indeed can work on version 4.0.4. When I am trying to use:I will get:
back, which means that accept doesn't exist and accept is really not working.
And if I use:
I will get an error in console saying:
And by changing
startAdornment
tostartadornment
, it won't show the icon but can avoid browser error.So, the finally working version for me is like:
Expected behavior
InputProps
andinputProps
should be merged into one prop.Desktop (please complete the following information):
Additional context