Cleave.js: Masking/Hiding Value

Created on 10 Jan 2018  路  8Comments  路  Source: nosir/cleave.js

Hopefully a simple question here:

Does Cleave have the ability to mask a value in an input after it has been typed, similar to a password input type.

so for example if someone typed in a credit card number it would be masked like:

-####-####-1234

Thanks very much

Most helpful comment

@nosir so before I go and fork this repo to add the password masking I'm curious why Cleave doesn't support this? It would seem to be a relatively straightforward process especially given what Cleave does. Have an optional param the user sends in for 'pw' with, e.g., the replacement character, and do the substitution on key entry.
Given that this isn't provided there must be complications beyond my theoretical thought process that makes this more difficult than I would believe.

All 8 comments

trying to figure this as well

Hmm, unfortunately this is not supported by the lib :)
Thanks for the like tho, closing this.

@nosir Will there be any support for this feature?

@abhinukala sorry, this is not in the plan.

@nosir Any idea of how can I achieve this functionality. An example would be great. Thanks!

@nosir so before I go and fork this repo to add the password masking I'm curious why Cleave doesn't support this? It would seem to be a relatively straightforward process especially given what Cleave does. Have an optional param the user sends in for 'pw' with, e.g., the replacement character, and do the substitution on key entry.
Given that this isn't provided there must be complications beyond my theoretical thought process that makes this more difficult than I would believe.

trying to figure this out as well

Hi, any news on this request @karlkras ? Did you managed to get a solution? Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CaptainYarb picture CaptainYarb  路  3Comments

drugoi picture drugoi  路  5Comments

periabyte picture periabyte  路  7Comments

melbon picture melbon  路  3Comments

YanikCeulemans picture YanikCeulemans  路  3Comments