RobinHerbots / Inputmask

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

add option: hide mask only if value is empty (without mouse events) #2064

Open nemiro opened 5 years ago

nemiro commented 5 years ago

add new option to allow show mask only if user has started input. mask will not be visibile if value is empty and will be visible if value is not empty.

duplicate of https://github.com/RobinHerbots/Inputmask/issues/1302

I will make pull request to latest version.

also I made plnkr, so you can see result by yourself.

example is for 4.0.4 version see /*inemiro::*/ comment at the inputmask.js https://embed.plnkr.co/32Yhomx5eyhs1IJus5Xj/

nemiro commented 5 years ago

made new pull to latest HEAD version https://github.com/RobinHerbots/Inputmask/pull/2065

RobinHerbots commented 5 years ago

@nemiro ,

Isn't this the same option as clearMaskOnLostFocus

PelElMejor commented 2 years ago

When I use clearMaskOnLostFocus option, woks, but the mask be show and I need that the mask just be show when I use the input.