Highlight another area on hover/click #55
-
Hi, I want to hightlight two different areas when I hover on one of them. And once I click on one of them the highlight stays enabled. Any ideas on how to get his done? thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That's a good idea but as of now, you can achieve it by adding Note: You need to turn off the Codesandbox: https://codesandbox.io/s/billowing-bush-u4s9jb |
Beta Was this translation helpful? Give feedback.
That's a good idea but as of now, you can achieve it by adding
preFillColor
property when you click/hover on one of the items.Note: You need to turn off the
active
feature because your current state and mapper state crossing each other and you will notice some problems due to that.Codesandbox: https://codesandbox.io/s/billowing-bush-u4s9jb