fixed a bug when button's parent is hided, the button still can responce to clicked event

fixed a bug when button's parent is hided, the button still can responce to clicked event