vue-bulma / cleave

Vue Cleave component is based on cleave.js for Vue
MIT License
105 stars 17 forks source link

Dynamic masking based on input length #21

Open felipesilvati opened 5 years ago

felipesilvati commented 5 years ago

I need to have a text input so that the user can type the company brazillian CNPJ number (14 digits) or a brazillian CPF (11 digits) with a dynamic mask according to the length of the text, as the example below:

CNPJ: 12.345.789/1011-12 CPF: 123.456.789-01

Is there are way to do this using vue-bulma/cleave ? If not, that'd be a really great feature to be implemented in the next release. Thanks a lot.