Problem with making a tab box disappear when clicking outside the box

Thanks for reply. But I have figured out the problem.
It’s due to the ColoerRect prevent the signal of clicking.
(Click on buttons underneath a ColorRect - #2 by system)