ui issue (buttons can not be clicked)

hi. I have a question. I have a widget with an inventory grid. if you simply add it to the main widget, then the buttons in this grid cannot be clicked, and if you create a grid in the main widget graph, then all the buttons can be clicked. how does it work?