Clearing content upon setting focus is erratic

In most cases when I have an input I would like to clear out the text in it when focus is set to it and the user wants to start typing. For a sign in screen identical setup works for the password, but not for the username. It works elsewhere in the project also. But its not 100% consistent.

The way I do it is to have a conditional, such that “when input is focused” the “initial content” goes to nothing.

This topic was automatically closed after 70 days. New replies are no longer allowed.