oakmac / autocompletejs

AutoCompleteJS Widget
Other
72 stars 14 forks source link

Placeholder text can coexist with input text #85

Open tschmal opened 10 years ago

tschmal commented 10 years ago

If the widget has placeholder text:

(1) User types in stuff but doesn't accept a value or create a token. (2) User clicks away from the widget. (3) Widget now shows both the placeholder text and the input text. Looks bad.

Suggested fix:

On the click away, check not only for the existence of tokens when determining whether to show the placeholder, but also for input text.