Comments (4)
So it looks like you're having a problem with the dropdown being cut off - for this I would recommend checking out the dropdownContainer option.
As for the click-off-to-close issue - I'm afraid I won't be able to help without a live demo to play with. If you can find the minimal set of code that reproduces the problem and put that in a CodePen, then I'd be happy to take a look. Here is an example pen with the plugin up and running - feel free to fork this if it helps.
from intl-tel-input.
Could you please try this thanks.
https://codepen.io/chayutWQ/pen/yLrJrmB
from intl-tel-input.
Thanks for putting that together. Yes I can confirm that click-off-to-close is not working within the dialog. So the way the plugin handles click-off-to-close is by setting a click listener on the root document.documentElement
node, but in this case, due to the @headlessui/react library you're using, clicks on the dialog are being swallowed, and so they never bubble up to the documentElement. I'm not sure of a way around this from my end. I think the best thing to do is open an issue with @headlessui/react and ask if there's a way to disable this click-swallowing behaviour. Please link to this issue so we can keep in sync. Thanks.
Edit: I found a relevant issue in the headlessui repo and so posted a comment there. It seems like several other people are having the same problem but nothing seems to be done unfortunately.
from intl-tel-input.
I'm afraid there's nothing we can do about this - it's a problem with another library, so I'm going to close this.
from intl-tel-input.
Related Issues (20)
- HTML5 required/pattern input validation on React Component HOT 1
- No search input is showing. HOT 4
- Utils script missing functions HOT 1
- intlTelInput.d.ts is not a module. HOT 5
- Cannot find module 'react' HOT 2
- Next.js: cannot find module intl-tel-input/react or its corresponding type declarations HOT 11
- .isValidNumber() result diferent from .isValidNumber() from google phone library HOT 2
- On geoIpLookup success, countrychange event fires only for the first iti instance HOT 1
- SyntaxError: Cannot use import statement outside a module HOT 2
- Force to use the prefix HOT 5
- Proposal: include translations HOT 3
- ES5 Support on AngularJS App HOT 5
- setNumber not setting the phone Number
- Advise: Multiple instances of intl-tel-input getting loaded, causing global "window" collision HOT 5
- can you exclude the "Unknown" country from the input? HOT 7
- [Question] Is Bower still used? HOT 1
- Console error when using browser autofill HOT 2
- [FUN] intl-tel-input in the wild HOT 4
- [Feature Request] Dark mode on documentation. HOT 4
- Translated country name is passed in few instances HOT 2
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.