Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
meljason opened this issue Mar 28, 2021 · 2 comments
Assignees
Labels
feature New Feature help wanted Extra attention is needed

Comments

@meljason
Copy link

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.

@NishargShah
Copy link
Member

NishargShah commented Mar 28, 2021

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

@NishargShah NishargShah self-assigned this Mar 28, 2021
@NishargShah NishargShah added feature New Feature help wanted Extra attention is needed labels Mar 28, 2021
@NishargShah
Copy link
Member

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

@NishargShah NishargShah pinned this issue Mar 28, 2021
@NishargShah NishargShah changed the title The new area active (true/false) function still allows users to click and access the data from it. [Feature] The new area active (true/false) function still allows users to click and access the data from it. Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New Feature help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants