-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Bootstrap 4 no highlight of element in list #380
Comments
Any chance you could provide an example of how to do that @Serhioromano? Would be much appreciated. Thanks! |
@aaronbarzilai to do what? |
Not sure if any of you have ever read the source file: |
This is because the css class changes in bootstrap 4 I create this class as "work-around" ` .typeahead .active .dropdown-item { |
Well if you would have read the source code I linked in my reply above, you would notice that you only need to set the Therefor the entire issue is obsolete and to be closed. @bassjobsen please include that option in the docs on the README. https://github.com/bassjobsen/Bootstrap-3-Typeahead/blob/master/bootstrap3-typeahead.js#L742 |
@divadsn Yes I try it and it didn't work for me, or maybe I',m calling bad the theme
|
@Edig the preview from my reply is done using the following code:
Using recent minified version from this repo. |
Thanks. I didn't understand the theme option, I just used it and it worked
great. Appreciate it!
Aaron
…On Mon, Apr 27, 2020 at 1:52 PM David Sn ***@***.***> wrote:
@Edig <https://github.com/Edig> the preview from my reply is done using
the following code:
$('#search').typeahead({
items: 10,
minLength: 2,
delay: 200,
theme: 'bootstrap4',
fitToElement: true,
changeInputOnSelect: false,
changeInputOnMove: false,
source: function(query, process) {
$.get('./search?q=' + query, function(data) {
return process(data);
});
},
...
});
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#380 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADYZXB5PGD2KIRIZT4I4QGTROXA4ZANCNFSM4IVUWFJA>
.
|
There is list like this
It adds an active element to
LI
but in BS 4 you have to add an active element to a link. I suggest to add it to both.The text was updated successfully, but these errors were encountered: