marcelo-ribeiro / smask

Smask - Vanilla JS Mask
https://marcelo-ribeiro.github.io/smask
11 stars 2 forks source link

currently not possible to type the separator characters #4

Open yherve opened 1 year ago

yherve commented 1 year ago

Hi Marcelo. Thanks for this great plugin. This is exactly what I was looking for since it is unintrusive and plays well with other libs.

There is a small improvement you could do though: currently the plugin won't let you type the separator characters. For example, if the mask is "dd:dd", I have to type 1230, but if I am unaware of the mask mechanism, I am going to try to type 12:30 and it won't let me.

other minor documentation issue: I had to import the lib using this syntax

import * as smask from  "smask";

the import in the readme didn't work, not sure why (I am using svelte)

marcelo-ribeiro commented 1 year ago

Hi @yherve. Thanks for feedback! I will implement this improvement and let you know. I will update the readme instructions. 👍🏼