RobinHerbots / Inputmask

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

With alias: 'url' and ‘jitMasking’: true,initial input value like “http://t” doesn't echo correctly #2767

Open aukoonpang opened 5 months ago

aukoonpang commented 5 months ago

I am creating a inputMask with config like this:

Inputmask({
    alias: 'url',
    jitMasking: true,
}).mask(document.querySelector('#test'))

and html like:

<input value="http://t" id="test">

then i got this:

image

seems like the render went wrong