typeahead.js icon indicating copy to clipboard operation
typeahead.js copied to clipboard

Placeholder displaced on backspace

Open tornography opened this issue 13 years ago • 1 comments

Hi,

I found a litte problem with the placeholder when deleting letters from selection. To reproduce:

  1. demopage -> countries
  2. type "ge"
  3. select 3rd option "South Georgia and the South Sandwich Islands"
  4. hit backspace for deleting last "s"

Now the placeholder is visible in the back and is aligned left, while the input is aligned right.

typeahead_placeholder_displacement

regards

tornography avatar Feb 21 '13 09:02 tornography

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

timtrueman avatar Feb 21 '13 17:02 timtrueman