benmneb / mui-image

⚛ React component to display images as per the Material Design guidelines. For apps using Material-UI v5.
https://mui-image.surge.sh
ISC License
50 stars 14 forks source link

ref is not forwarded #22

Open rkehr opened 2 years ago

rkehr commented 2 years ago

First of all thank you for making and maintaining this project, it has been very helpful to me, I appreciate it!

But now I've run into a problem where a library requires me to pass the ref to a component and mui-image does not seem to support this.

If you don't mind I will create a pull request to get this sorted out as soon as possible. If you have any preference as to which element to pass the ref to, let me know. Otherwise I would just pass it on to the <img/> rather than the container.

benmneb commented 1 year ago

thanks for this! i dont know why but this breaks the "shift" feature 🤔