typeahead.js
typeahead.js copied to clipboard
Placeholder displaced on backspace
Hi,
I found a litte problem with the placeholder when deleting letters from selection. To reproduce:
- demopage -> countries
- type "ge"
- select 3rd option "South Georgia and the South Sandwich Islands"
- hit backspace for deleting last "s"
Now the placeholder is visible in the back and is aligned left, while the input is aligned right.

regards
Oh, I remember this bug. The solution is actually to hide the hint when the input length is greater than the input. Good catch!