Open gibigate opened 2 years ago
We have a fixed positioning header with search input. When user scrolling down and click search input, local suggestion are displayed, then ios keyboard showing from bottom, so suggestions position are broken
styles:
.header {position:fixed; top:0; left:0; right:0;}
js:
$('.search-form').autocomplete({ minChars: 0, paramName: 'q', lookup: function (query, done) { if(query==='') { var search_queries = searchHistory.getItems(); done(search_queries); } else { $.get('/suggest/',{q:query}, function(data) { result = JSON.parse(data); done(result); }); } } });
example:
We have a fixed positioning header with search input. When user scrolling down and click search input, local suggestion are displayed, then ios keyboard showing from bottom, so suggestions position are broken
styles:
js:
example:![2021-10-15 17 56 21](https://user-images.githubusercontent.com/1709390/137483020-ad323246-d2a3-4316-9aae-32564bbd81d9.jpg)