socialtables / react-image-fallback

stop displaying broken images, have another image to fallback on.
111 stars 18 forks source link

Remove html attributes dependency #51

Closed davidfraser closed 4 years ago

davidfraser commented 5 years ago

This was using filter-invalid-dom-props to decide what props to pass through to the wrapped img tag. However, that project depends on html-attributes which is under the Open Works License - a worthy license, but not a common one, and so may require legal review for various projects.

This change rather just filters out the properties of the component itself - and passes others through, just as you could when using img directly