img-mapper/react-img-mapper

Keyword active (false) seems to deactivate the preFillColor option.

Closed this issue · 2 comments

Describe the bug
When declaring the map coordinates, if you put active = false, it deactivates the preFillColor option.

To Reproduce
Steps to reproduce the behavior:
const map = { active = false, preFillColor = "rgba(69, 82, 94, 0.70)", id = 1, name = "1", shape = "poly", coords = [...] }

Expected behavior
A clear and concise description of what you expected to happen.
The active = false should not disable the preFillColor.

Desktop (please complete the following information):

  • Browser: [Chrome]
  • Version: [89.0.4389.90 ]

Hello @meljason, nice catch.

Please upgrade your version to v1.1.1

Thanks

Awesome. Works perfectly. Thank you!