Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design Question #1642

Open
darielopper opened this issue May 19, 2017 · 0 comments
Open

Design Question #1642

darielopper opened this issue May 19, 2017 · 0 comments

Comments

@darielopper
Copy link

I am currently working with a Bootstrap 3 template in which they add an effect to the input when they have the focus on it, in this case it is a blue line that is animated at the bottom edge of the control. When I call the function $ ('# control'). typeahead () this effect is omitted completely. I would like to keep it, I know internally that other classes are created and added to my input field, I tried to change the css several times but nothing. If you could help me with this topic I would greatly appreciate it.

Example:
HTML:

Javascript:
function loadData(){
// constructs the suggestion engine
var names = new Bloodhound({
datumTokenizer: Bloodhound.tokenizers.whitespace,
queryTokenizer: Bloodhound.tokenizers.whitespace,
prefetch: {
url: '/json/names',
cache: false
}
});
$('#names').typeahead({
highlight: true,
minLength: 1
},
{
name: 'names',
source: names
});
}

        $('#load').on('click', function(){
            loadData();
        });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant