viclafouch / mui-file-input

A file input designed for the React library MUI
https://viclafouch.github.io/mui-file-input/
MIT License
77 stars 17 forks source link

Pass InputAdornment props to startAdornment #49

Closed alyaskana closed 6 months ago

alyaskana commented 6 months ago

I am using the component and want the start icon to be clickable and also open the file picker window like input does

I found that passing disablePointerEvents={true} to InputAdornment component should help https://mui.com/material-ui/api/input-adornment/#input-adornment-prop-disablePointerEvents

But I can't do it because it's hardcoded in lib: https://github.com/viclafouch/mui-file-input/blob/f07cc45f6f09d049adeb9ff8ef4591361d69a78e/src/index.tsx#L148-L151

viclafouch commented 6 months ago

Hello !

What about a PR that wrapping the all component to make it clickable instead of only the clickable text ?