gameObject.SetActive(false) not working on children of Active parent

I am having the Activation/Deactivation Problem with child Panel.
I have a CANVAS, and there are different Panels like setting panel, level_selection panel game_Play panel.
So in my Game_Play Panel there is a Dialogue Panel which contains button and a Text to show text.
So when I Disable that dialogue panel by SetActive(false) it executes the code but really don’t disable it.
And none of any child component of game_play panel could disable ??? why…
If I disable Game_Play panel it get disable but not any of it’s child ???
well this code is assigned to button.

public void B_CloseDialog()
    {
        DialogPanel.SetActive(false);
    }

How are you assigning the Dialogue_Panel reference?

Yes I have assigned the reference as well.

For Now, I have Moved Dialouge_Panel outside of Game_play panel. It is working as it should.
Maybe the problem is caused because there are mobileController Script (JoyStickScript) from StanderPackage which I am Using for controls.
It was giving me the error of (There is already a virtual axis named Horizontal registered.) and (There is already a virtual axis named Vertical registered.) every time I hit play, so I found a Solution on Internet and I did this
UnRegisterVirtualAxis(axis.name);
RegisterVirtualAxis(axis);

I don’t know maybe this is causing the Issue, or it is because of the JoyStickScript which I am using for mobile controls

I wasn’t asking if it was assigned I was asking how it was assigned and to what.

It was assigned through Inspector (I used Public GameObject for this)