react-tinder-card icon indicating copy to clipboard operation
react-tinder-card copied to clipboard

Convert className toString to work for SVGs

Open BenjaminWaye opened this issue 2 years ago • 1 comments

BenjaminWaye avatar Jul 23 '23 19:07 BenjaminWaye

This is an important fix. This is still broken when pressing on an SVG in the React tinder card

The SVG doesn't have className so instead null is sent which causes an exception. The solution is to getAttribute("class") instead.

BenjaminWaye avatar Jun 21 '24 21:06 BenjaminWaye