xcash / bootstrap-autocomplete

Bootstrap Autocomplete
MIT License
168 stars 72 forks source link

"dropdown-item" css class is used for Bootstrap 3, which is not there #125

Open kinguru opened 3 years ago

kinguru commented 3 years ago

Describe the bug Use { bootstrapVersion: 3 } options The dropdown rendered is ugly. The reason - there is no "dropdown-item" class in Bootstrap3.

To Reproduce HTML <input class="form-control basicAutoComplete" type="text" autocomplete="off" data-url="/user/search" /> JS $('.basicAutoComplete').autoComplete({ bootstrapVersion: 3 }); Actual result: the dropdown looks ugly

Expected behavior use appropriate css classes for BS3

Screenshots image

Desktop (please complete the following information):

Comments In case is use bootstrapVersion: "3" the UL element is not visible. (disaply:none in debugger)

prototype.show() is not called prototype.hide() is called ok

Do you have a demo for BS3?