Button onclick problem?

I write this in a panel but when i click everywhere in the screen, it returns “Click”, but expect the button.
only the button doesn’t work.

how can i fix it?

public class MenuPeacePanel : BasePanel
{
    static  string path = "2D/UI/panel/Menu_Peace_Panel";

    public MenuPeacePanel():base(path){}
    public override void OnEnter()
    {
        base.OnEnter();
        uiTool.GetOrAddChildrenComponent<Button>("BtnBag").onClick.AddListener(ButtonClick);
        void ButtonClick()
        {
            Debug.Log("Clicks");
            panelManager.PanelPush(new BagPanel());
        }
    }
   
}

I have found that the GetOrAddChildrenComponent<Button> method gets the hole panel (parent). I’m a brilliant man.