Inputmask: Phone input mask duplicates each character on Samsung Android tablet

Similar to #705. With this input mask:

$( "#checkout-addr-phone" ).inputmask( "(999) 999-9999" );

. . . every digit entered is duplicated. E.g. if I enter “608555…” I get “(660)088555555”. This is with the newest version of inputmask.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Hello, @RobinHerbots I have same problem with email.

Do you have some tip? V- 4.0.3 - 2018-11-07

    $(".mascara_email_").inputmask({
      mask: "*{1,20}[.*{1,20}][.*{1,20}][.*{1,20}]@*{1,20}[.*{2,6}][.*{1,2}]",
      greedy: false,
      placeholder: "",

      onBeforePaste: function (pastedValue, opts) {
        pastedValue = pastedValue.toLowerCase();
        return pastedValue.replace("mailto:", "");
      },
      definitions: {
        '*': {
          validator: "[0-9A-Za-z!#$%&'*+/=?^_`{|}~\-]",
          casing: "lower"
        }
      }
    });