jackocnr / intl-tel-input

A JavaScript plugin for entering and validating international telephone numbers. Now includes React and Vue components.

Home Page:https://intl-tel-input.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ukrainian mobile code 98 conflicts with Iran code

piliffok opened this issue · comments

Plugin version

v23.0.7

Steps to reproduce

  1. Choose Ukraine (or)
  2. Enter 380987183223 (or) 987183223
  3. Country switched to Iran

Expected behaviour

Numbers like 38098 detects as Ukrainian

Actual behaviour

Numbers like 38098 detects as Iran

Initialisation options

excludeCountries: ['ru'],
initialCountry: 'ua',
countryOrder: ['ua', 'pl', 'de', 'fr', 'gb'],
autoPlaceholder: 'aggressive',
separateDialCode: true,
strictMode: true,

Additional info

Some numbers, like 38098415xxxx detects correctly

That's strange, I can't reproduce this issue. I've setup a codepen with your initialisation options, but when I type those numbers it stays with Ukraine selected - can you reproduce the issue on this codepen somehow? If so, can you provide clear steps to reproduce?

Closing due to inactivity.