Ability to get raw value by default
See original GitHub issueHi,
How can I get raw value with input.val()
by default?
I’m trying to use Cleave with external credit card validator and when validator gets value of input using jQuery.val()
it’s failed on Cleave mask, because value is not looks like credit card number.
For example in Robin Herbots mask plugin — https://github.com/RobinHerbots/Inputmask — it can be achived using autoUnmask option.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Default or Base Case in Enums - Pitches - Swift Forums
Hi Swift Enums have raw values and hence are easy to initialise, irrespective of the type of raw value. Recently, Swift has added...
Read more >Swift enum cannot assign default raw value - Stack Overflow
My understanding is that enum raw values are limited to certain types (Ints, Strings, Booleans, etc). Obviously BestLetters isn't one of those ...
Read more >Access a raw value for pure enum without using associated type
I can parse a Set of entity instance name as follows and this provides a perfectly formatted string, based on the var ....
Read more >How the raw values of Int-based enums get incremented
By default, the raw values for an enum backed by Int (or any other numeric) start at zero, and then get incremented by...
Read more >Swift — Enums - Jullian Mercier
Default values are accessible using the rawValue property. ... When using the rawValue property, Swift will automatically convert your case into a String...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, maybe I was not clear in my issue, but the problem with external validators depends on how validators gets data from input with Cleave. In my situation, external validator request value of input after blur event and I can’t add call for
getRawValue
directly, in this case option like autoUnmask will be good, but not necessary. Btw, I achieved my task with jQuery valHooks:This might help: https://github.com/nosir/cleave.js/issues/397#issuecomment-607165379