Unity UI OnClick AddListener

I currently have the following structure for my UI:

  • UI (Root)
    —Inventory
    -------Slots
    -----------Slot1 (This has button attached)
    ---------------Image
    ---------------Text
    -----------Slot2
    -----------Slot3
    ----------- etc…

I’m instantiating the slot objects as set prefabs in my resource folder and trying to attach a custom onclick addlistener to it. The problem is, that when clicking on the Slot, nothing happens, the function delegated to the listener doesn’t respond or go through.

The question is, does something overlay the slots so i cant press the it correctly or what could cause this problem.

Here are the screenshots of the attribute window and the hierachy.
Inventory and generalUI root’s have canvas group, which alpha is toggeled between 0 and 1 to hide and show certain ui. does something overlay it?