How to correctly use the clearHighlightedArea() function in react-img-mapper? #40
-
Beta Was this translation helpful? Give feedback.
Answered by
NishargShah
Apr 3, 2022
Replies: 1 comment 4 replies
-
Hey @ndf17a If you are using an uncontrolled way then Here is the example of clearHighlightedAreas: https://img-mapper.github.io/react-docs/?path=/story/examples-area--clear-selected-highlighted-area If you are using a controlled way then You need to remove |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
NishargShah
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @ndf17a
If you are using an uncontrolled way then
Here is the example of clearHighlightedAreas: https://img-mapper.github.io/react-docs/?path=/story/examples-area--clear-selected-highlighted-area
If you are using a controlled way then
You need to remove
preFillColor
from all objects those are used in a state.