Comments (4)
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.
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.
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:
-
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?
-
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.
-
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.
from intl-tel-input.
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)
- Incorrect Flag Detection Due to Phone Masking in intl-tel-input Library HOT 3
- formatAsYouType includes prefix when not showing flags HOT 6
- @types/intl-tel-input is not synced with intlTelInput.Options HOT 5
- preferredCountries not working HOT 7
- SetAttribute error HOT 3
- reference custom element in wiki HOT 1
- Deleting all characters from input results in console error HOT 4
- Disable alphabetic chars (etc) HOT 7
- Broken Search Broken module Broken all HOT 7
- Cursor pointer HOT 1
- intl-tel-input/19.2.5/img/flags.png 404 not found HOT 2
- When countrySearch: false, and you search for a country it does not scroll to it HOT 5
- Search country input on mobile browsers is not tapable HOT 6
- React version of intl-tel-input throws an error when unmounted HOT 2
- Format as you type nor working HOT 1
- There should be no 0 after the code in Türkiye number HOT 5
- Bug: `nationalMode` and `showSelectedDialCode` together HOT 6
- Initialization options: "i18n.countryListAriaLabel" has no effect HOT 2
- Search field not appearing within drop down HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intl-tel-input.