Fixed the case where the input has no placeholder.