From abf97f9f57c2723432fb8b11cdbc99d10b052c0c Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 17 Feb 2021 13:47:34 -0800 Subject: [PATCH 1/2] Issue https://github.com/lodev09/bootstrap-suggest/issues/55 Should now render correctly under Bootstrap 3 and 4. --- dist/bootstrap-suggest.css | 3 ++ dist/bootstrap-suggest.js | 41 ++++++++++++------------- src/bootstrap-suggest.js | 61 ++++++++++++++++---------------------- src/bootstrap-suggest.scss | 2 ++ 4 files changed, 52 insertions(+), 55 deletions(-) diff --git a/dist/bootstrap-suggest.css b/dist/bootstrap-suggest.css index 9ff70c6..de5a13c 100644 --- a/dist/bootstrap-suggest.css +++ b/dist/bootstrap-suggest.css @@ -14,6 +14,8 @@ .suggest > .dropdown-menu { margin-top: 15px; position: absolute; + height: 200px; + overflow-y: scroll } .suggest > .dropdown-menu > a.dropdown-item { @@ -24,3 +26,4 @@ .suggest > .dropdown-menu > a.dropdown-item:first-child { border-top: 0; } + diff --git a/dist/bootstrap-suggest.js b/dist/bootstrap-suggest.js index a978209..659a927 100644 --- a/dist/bootstrap-suggest.js +++ b/dist/bootstrap-suggest.js @@ -1,5 +1,6 @@ /* =================================================== * bootstrap-suggest.js +* v2.0.3 * http://github.com/lodev09/bootstrap-suggest * =================================================== * Copyright 2019 Jovanni Lo @lodev09 @@ -35,7 +36,7 @@ this.$dropdown = $('
', { 'class': 'dropdown suggest ' + this.options.dropdownClass, - 'html': $('
', {'class': 'dropdown-menu', role: 'menu'}), + 'html': $('