RobinHerbots / Inputmask

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

Can't hide placeholder for email mask from extensions. #1270

Open dvelikiy opened 8 years ago

dvelikiy commented 8 years ago

Hi, I'm just trying to have my mask applied silently without showing placeholder. Tried emptying placeholder and enabling jitMasking but to no avail. When I set jitMasking to true, "oncomplete" and "onincomplete" don't work. Mask works fine otherwise. Can you please help with that?

My code:

$(".js-email").inputmask("email", { "onincomplete": function(){ $(this).parent().addClass("has-error"); }, "oncomplete": function(){ $(this).parent().removeClass("has-error"); } ,autoUnmask: "true" ,jitMasking: "true", placeholder: "" });

dvelikiy commented 8 years ago

Also mask doesn't seem to apply at all when input type="email" instead of "text".

RobinHerbots commented 8 years ago

You should pass true as value and not the string "true" for jitMasking

Op di 10 mei 2016 om 09:58 schreef Dmitry Velikiy <notifications@github.com

:

Also mask doesn't seem to apply at all when input type="email" instead of "text".

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/RobinHerbots/jquery.inputmask/issues/1270#issuecomment-218085189

dvelikiy commented 8 years ago

@RobinHerbots It makes no difference: oncomplete/onincomplete doesn't work when I set jitMasking: true

RobinHerbots commented 8 years ago

@codenotfound ,

Ow sorry , I didn't test that. I will check that.

RobinHerbots commented 8 years ago

1272