Skip to content
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

[BUG][iOS] Incorrect suggestions position on IOS with minChars:0 option and fixed search input #832

Open
gibigate opened this issue Oct 15, 2021 · 0 comments

Comments

@gibigate
Copy link

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:
2021-10-15 17 56 21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant