Giter Site home page Giter Site logo

Comments (5)

nithinstany avatar nithinstany commented on July 30, 2024

Any solution for this issue to fix.

from autocomplete.

jackkinsella avatar jackkinsella commented on July 30, 2024

The modification 3b63321 caused this to break severely on iPhone.

When the page is unscrolled:

Screen Shot 2019-11-06 at 15 34 06

When I scroll, now the autocomplete box for "Postleitzahl" appears about 100px below and overlaps with the street input:

Screen Shot 2019-11-06 at 15 34 32

Undoing this change fixes the issue.

from autocomplete.

kraaden avatar kraaden commented on July 30, 2024

@jackkinsella Thank you for reporting the issue. Do you have any page where I can reproduce it? I tested the following page on iPhone 6 as well on Browserstack using 2 newest iPhones, but everything seems to work just fine:
https://kraaden.github.io/autocomplete/

If possible, let me know which iOS version you used.

from autocomplete.

jackkinsella avatar jackkinsella commented on July 30, 2024

I created a CodePen to demonstrate: https://codepen.io/jackkinsella/pen/jOOxEdq

(It uses your library code except a change where I force IOS mode. You can then inspect with DevTools iPhone simulation)

The autocomplete is in the correct position before any scrolling happens (i.e. the first input is perfect), but after scrolling occurs (i.e. the second input), the autocomplete popup's position seems to be set to a top value that is larger than the viewable screen's height (i.e. which isn't going to play well with position:fixed). This happens because of the addition of window.pageYOffset, which is equal to the amount scrolled.

iOS version? Not sure, sorry (was a colleague's phone). I think it was the one before the X. But the issue can be reproduced in Chrome DevTools.

from autocomplete.

rikjacobs1390 avatar rikjacobs1390 commented on July 30, 2024

I can also reproduce this bug on iPad (iOs 13.2). Exactly the same bug as jackkinsella describes. It' fine when the page is unscrolled. When scrolled (either by hand or triggered by the appearing of the iOs keyboard) the position of the dropdown in incorrect.

from autocomplete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.