Commit e8b1b85073470198e7e2d029b4a4edfd0f2d034f

Authored by Katarzyna Krasnowska
1 parent b7e06424

fix: autocomplete now scrolls with the page

common/static/common/css/common.css
... ... @@ -24,7 +24,3 @@ main {
24 24 text-align: left;
25 25 max-width: 500px;
26 26 }
27   -
28   -.ui-autocomplete {
29   - z-index: 1060;
30   -}
... ...
entries/static/entries/js/forms.js
... ... @@ -236,6 +236,8 @@ function bind_autocompletes(selector) {
236 236 var autocompleted = $(this);
237 237 // https://api.jqueryui.com/autocomplete/#option-source
238 238 autocompleted.autocomplete({
  239 + // doesn’t work with autocompleted, perhaps bc it’s an <input> and parent is a <div>
  240 + appendTo: autocompleted.parent(),
239 241 source: function(request, autocompleter) {
240 242 $.ajax({
241 243 type : 'get',
... ...