Possibility to change nationalMode value

Created on 26 May 2023, about 1 year ago

Problem/Motivation

Element by default returns 'placeholder' value as national phone number. That means it uses local area code to display number. For example number '+49 30 901820' would be shown as '030 901820'.
There was a need of changing 'placeholder' value to international number all the time. To do that we need intl-tel-input library parameter 'nationalMode' to be false. But here its always true.

Steps to reproduce

Use phone_international field, fill international number, for example '+49 30 901820'. Save field and see that place holder shows national number '030 901820', when field value is still '+49 30 901820'.

Proposed resolution

Add attribute to element, for example 'national_number', to change js 'nationalMode' value.

✨ Feature request
Status

Active

Version

3.3

Component

Code

Created by

πŸ‡±πŸ‡ΉLithuania ugas19

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024