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

Format as you type nor working #1518

Closed
Oldp1e opened this issue Jan 22, 2024 · 1 comment
Closed

Format as you type nor working #1518

Oldp1e opened this issue Jan 22, 2024 · 1 comment

Comments

@Oldp1e
Copy link

Oldp1e commented Jan 22, 2024

Steps to reproduce

  1. Create a simple HTML file with a single input box and follow the steps from getting started with cdn
  2. Try to type and see if formatAsYouType works, using latest version

Expected behaviour

Should format the field when typing to your current selected region

Actual behaviour

formatAsYouType do not format the field as you type

Initialisation options

formatAsYouType: true,
utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/js/utils.js",

SAMPLE TEST:

<script src="https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/js/intlTelInput.min.js"></script>
<script>
  const input = document.querySelector("#tel_number");
  window.intlTelInput(input, {
    formatAsYouType: true,
    utilsScript: "https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/js/utils.js",
  });
</script>
@Oldp1e
Copy link
Author

Oldp1e commented Jan 22, 2024

My mystake, just realised the error was already fixed in the latest version, sorry!

@Oldp1e Oldp1e closed this as completed Jan 22, 2024
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