Widget Menu disappears when I click with mouse

Hello Forum, I have this little issue: I created a menu Widget to change the floor material and control the light but when I click on button the widget disappears. I’ ve already did it and it worked. I check to find the mistake but I canot go out. Can you help me please?

Can you show the code of the widget?

Do you happen to have “remove from parent” for the on click event somewhere?