RobinHerbots / Inputmask

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

Non-zero padded hour not allowing 1 #1977

Open colleenbprice opened 6 years ago

colleenbprice commented 6 years ago

I am using this mask: $el.inputmask( alias: 'datetime', placeholder: '_', inputFormat: 'h:MM tt' );

It works great for any other hour except 1. I even tried typing in the colon after the 1 to get it to move on to the minute, but nothing happens. Trying 0 first will cause it to put in 10:__ _m. I can't even type in higher numbers after the 1 to get it to recognize that it needs to move on to the minute. I just downloaded version 4.

colleenbprice commented 6 years ago

For some reason when I separated it from my code in a codepen, I get the opposite problem. I can't type 10, 11, or 12.