Fixed issue where widgets would consume mouse click when invisible.