Button colors (hover effects) not working

I subclassed the button class and I wrote a new one but buttons are remaning “selected”. How can I fix this?. You can see the problem in the attached images

[CustomEditor(typeof(Sugar_Button))]
[CanEditMultipleObjects]
public class Sugar_ButtonEditor : Editor {
    public override void OnInspectorGUI() {
        DrawDefaultInspector();
    }
}

Okey I found the problem. Hover effects are working properly. I was calling base.OnPointerEnter(eventData); in OnPointerExit(PointerEventData eventData)

    public override void OnPointerExit(PointerEventData eventData)
    {
        base.OnPointerEnter(eventData);

        if(showInfo)
            CloseInfo();
    }