I want to change the image when entering and leaving mouse to it. But the image should stay there when clicked. I have an image attribute source that is replaced on mouse enter and mouse leave event. But image is also changing after clicking. I need the mouseleave event to stop working after clicking the image.
Here is the code below: