When changing background color of tt-input ta-head does not display tt-hint

The default is tt-input transparent

, I want to change its background color when focus is white

, but when I change color

, the prompt is no longer displayed because it is hidden new color

. How can it be changed?

+3


source to share


1 answer


background-color: transparen

was set as inline style with javascript. You have to overwrite it using !important

.

for <input class="typeahead" type="text" placeholder="States of USA">

you should use:



.typeahead.tt-input {
background-color: black !important;
}   

      

Also see: https://github.com/twitter/typeahead.js/issues/677

+2


source







All Articles