Skip to content

How to correctly use the clearHighlightedArea() function in react-img-mapper? #40

Closed Answered by NishargShah
nicfornicola asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nicfornicola
Comment options

@nicfornicola
Comment options

@NishargShah
Comment options

@nicfornicola
Comment options

Answer selected by NishargShah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants