Reputation: 1560
I'm using semantic-ui-react's Popup element. Following is the my component's behaviour:
Hover -> Shows text 1
(saved as a state variable)
Click -> Closes the hover text (attached an onClick which changes the value of state variable from text 1
to text 2
Now apparently, on click the popup closes so I'm not able to see the hovered text 2
.
Is there a way, to keep the popup text from closing. I've tried e.stopPropogation()
in the onClick
but it didn't work.
Upvotes: 1
Views: 1074