Hide placeholder text when the input is invisible

In case the input is inside an inactive tab for instance.
Merge pull request #1 from rosenfeld/patch-1

Hide placeholder text when the input is invisible