Toggle placeholder directly rather than using focus event

Extract function to toggle placeholder explicitly rather than generating a focus event for toggle which may have other unwanted consequences.

Using focus can interfere with other controls that rely on that event. e.g. a date-picker popup on focus could be triggered unintentionally.