Only prevent click if text is selected