LouisMazel / vue-phone-number-input

A phone number input made with Vue JS (format & valid phone number)

Home Page:https://louismazel.github.io/vue-phone-number-input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(FEATURE REQUEST) - more control over the input display number format

creeptosis opened this issue · comments

Is your feature request related to a problem? Please describe

image
is there a way for the UI to display the raw phone number input by the user without automatically adding dashes, or perhaps allowance to choose the display number format of choice e.g. formattedNumber, nationalNumber, formatInternational, formatNational, uri etc..

use case

for example in Malaysia this is a valid number
image
both phone numbers below are also valid but it adds dashes to the input display automatically which is incorrect formatting for that country
image
image

Describe the solution you'd like

it would be good if formattedNumber could be displayed in this case, or we could choose display format

Describe alternatives you've considered

I tried exploring if I could just add my own text-field without using v-model and relying on @update or if there are slots available for the element