RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.4k stars 2.17k forks source link

Input mask - Auto fill on Safari #1879

Open egemenozkan opened 6 years ago

egemenozkan commented 6 years ago

Hello, With Latest version (4.0.0-beta.54) iOS Safari I would like to parse country code and phone code before adding into input when clicked contact phone. However I can not catch phoneNumber before set, It is instantly masked.

        $('[name="phoneNumber"]:visible')
        .inputmask('999 999 99 99',{"placeholder": "___ ___ __ __", onBeforeMask: function (value, opts) {
            console.log("-->" + value);
            var processedValue = value;
            return processedValue;
          }})
avxkim commented 5 years ago

Same here, but with vanilla JS. Without mask - it works perfectly.