img-mapper/react-img-mapper

[Feature] The new area active (true/false) function still allows users to click and access the data from it.

Closed this issue · 2 comments

Is your feature request related to a problem? Please describe.
Yes. In the new version, the users are now able to disable highlighting in certain area of the map. However, they can still click on it which allow them to access the data.

Describe the solution you'd like
I would like to be able to completely disable that area when active is false.

Describe alternatives you've considered
Alternative would be updating name attribute to empty so that they cannot access the data from it.

Got it but active property is still a good feature, I will keep it and announce the new keyword disabled for that and be clear disable will completely disable the highlight and all listeners that's why if another area is the parent of it, it will highlight it instead of that area.

Thanks

Hello @meljason

Please upgrade your version to v1.1.0

Here are the docs https://img-mapper.github.io/react-docs/?path=/story/examples-area--in-array-disabled-area

Thanks