Coder Social home page Coder Social logo

inputmask.phone's People

Contributors

dependabot[bot] avatar robinherbots avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

inputmask.phone's Issues

Country code doesn't work properly

Hi, Robin!

You've created an amazin plugin. But I can't to make it work. The problem is that the it's impossible to type an Armenian counry code 374 for example. Type 3 - 7 and the third "0" added automatically. When delete the digits - 0 is deleteng with 7 and only 3 stays.. Would be great if you could pay it some attention! Thanks in advance!

looking for a mask for belgium

Hello !

I'm looking for a mask able to manage a landline phone number, knowing that I don't have more informations about the user location that the country.

ex a number can be

67 58 69 64
or 2 589 64 89

I tried with this one: 9[9]-99[9]-99-99 but doesnt work.

Any idea ?

Thanks for advance for you reply

Thomas

Autofill and phoneCodes

When using autofill, the very first mask from the sorted list of phoneCodes is substituted +1(242)###-####

https://jsfiddle.net/aradul/eu3x2g18/

Steps to play back:

  1. Enter your phone number+7(916)000 00 00
  2. Submit a form to save the value
  3. Refresh the page
  4. Put the focus in the field, and bring up the autofill window
    изображение
  5. Select a previously saved value

The result will be as follows
+1(242)___-____7____

Even if you force countrycode: '7', the very first mask from the sorted list is still substituted, without taking into account the countrycode value.

France mask typo

The mask for France should be +33-#-##-##-## instead of:

mask: "+33(###)###-###",
                cc: "FR",
                cd: "France",
                desc_en: "",
                name_ru: "Франция",
                desc_ru: ""

Strange placeholder behavior

Hello! Thank you for your plugins!
I'm trying to upgrade to the last version of plugins.
I included jquery.inputmask.js, inputmask.phone.extensions.js, /phone-codes/phone.js
Html is <input type="text" class="mask_phone" value="">
And jquery code is $("input.mask_phone").inputmask("phone");

Everything works fine, but the mask in the phone field is always visible!
It doesn't seem quite right. It has to show only on hover. And if I enter a value and then delete it, then everything becomes correct.

See the video:
https://recordit.co/KcabM4nFmD

German format

When I try to fill input with German format of phone number, I can't do it.
For example: +49 30 901820
When I put it in input, it changes to +40-93-090-1820
I don't know how to fix it.

Create a phone mask with countrycode

Hello,
I use Ubuntu 16.04, FireFox 60.0.2(64bit) and I have a next source code for using phone inputmask

HTML

JS
$(this).inputmask({
alias: "phone",
countrycode: "7"
});

After loading a page I can see the element without a mask(placeholder). After I have got a focus on the element I can see a "phone" as word in placeholder of element, but I can't enter any characters into the element. But I need to have a mask or masks for selected country. Inform me please, how i can to do it.

When I use a static mask such as
mask: ['+9(999) 999-9999', '+999 99-99-9999', '+999 99-999-999', '+99(999)999-99-99']
in this case I haven't a any problems. Help me please. Thanks.

P.S. I have included a next js files:
inputmask.phone.extensions.js
phone.js
jquery.inputmask.js
jquery.inputmask.bundle.js

Version is the last(4.****).

index.js contains incorrect import

Hello!

Thank you for this library!

But, the index.js file, provided by the 1.0.3 version of he package contains an incorrect import statement.

It is:

module.exports = require("./dist/inputmask/inputmask.phone.extensions");

However, it should be:

module.exports = require("./dist/inputmask.phone/inputmask.phone.extensions.js");

The workaround is to import the target module directly:

import 'inputmask.phone/dist/inputmask.phone/inputmask.phone.extensions';

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.