insin / inputmask-core

Standalone input mask implementation, independent of any GUI
MIT License
304 stars 52 forks source link

Dymamic placeholder #45

Open geekyme opened 5 years ago

geekyme commented 5 years ago

Current behavior

pattern is MM/DD/YYYY, as you fill out the input, we get:

1_/__/____ 12/__/____

Desired behavior

pattern is MM/DD/YYYY, as you fill out the input, we get:

1M/DD/YYYY 12/DD/YYYY 12/1D/YYYY ...

Right now this is not possible because placeholder character is fixed. I need it to be dynamic based on the pattern.