Skip to content

Inconsistent behaviour #2106

@espen

Description

@espen

I am trying to use getNumber but it is only working on the initial call. To reproduce:

  1. go to https://intl-tel-input.com/examples/strict-mode.html
  2. enter phone code in international format
  3. Run intlTelInput(document.getElementById('phone')).getNumber(intlTelInput.utils.numberFormat.E164) in the console. It returns correctly however the displayed value in the input changes.
  4. Run command again. It returns national phone number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions