react-simple-maps icon indicating copy to clipboard operation
react-simple-maps copied to clipboard

"undefined" class in ZoomableGroup

Open lucasvazq opened this issue 3 years ago • 0 comments

Description

If you create a ZoomableGroup and don't add the className attribute, it will be created with the following classes: rsm-zoomable-group undefined.

Example

Search undefined in https://www.react-simple-maps.io/docs/zoomable-group/ 2021-03-21_20-50-15

Importance

This can lead to real problems if someone has a class called undefined, something dangerous in js applications by the way, but not that common.

How to temporarily avoid this problem

To avoid this problem, just create a ZoomableGroup and pass an empty string in the className attr.

lucasvazq avatar Mar 22 '21 00:03 lucasvazq