Giter VIP home page Giter VIP logo

Comments (4)

ryanatearth avatar ryanatearth commented on June 24, 2024 1

OK. Great. I do like this better on mobile. Just didn't know this was on purpose or not. Sounds good. Thanks for the help!

from intl-tel-input.

jackocnr avatar jackocnr commented on June 24, 2024

Looks like a z-index issue to me. You have an extremely high z-index on your .pc_bg_overlay_whole element, and so you will need to increase the z-index on .iti--container to be higher than this for it to appear above it.

from intl-tel-input.

ryanatearth avatar ryanatearth commented on June 24, 2024

Thanks for getting back to me. So yes, I tried putting the z-index high on the iti--container class. And the dropdown does show (see attached screenshot). However a few things:

  1. Why do I have to manually put the z-index in my css to get it to work on mobile devices? This works on desktop just fine. What is different in the underlying code that changes css/markup/dom for mobile vs desktop?

  2. Even though it is showing now, it is not aligned correctly within the container. However, this works perfectly fine on desktop across different browsers. So seems something might be different in how this is done via desktop/mobile.

  3. I tried using the init option 'dropdownContainer: document.getElementById('phone')', and after this then the dropdown won't even be shown when hitting the flag button.

Is there something that could be different in how mobile/desktop layout/elements/dom are created upon initialization? Seems weird that this would work on one and not the other. Unless I'm doing something wrong, but I'm really just doing the most basic use case it seems like.

Thanks for your help and looking into it.

41CE53EF-77F9-4B97-913A-62C603B8DEAD

from intl-tel-input.

jackocnr avatar jackocnr commented on June 24, 2024

Yeah on desktop we show a dropdown by the input, and on mobile we show a full screen popup, to make better use of the limited space. If you want to change this, see useFullscreenPopup option.

from intl-tel-input.

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.