cleave.js
cleave.js copied to clipboard
noImmediatePrefix seems not working for numeral fields
It seems to me that the noImmediatePrefix
option is not working as intended for numeral fields.
Reproduction
https://jsfiddle.net/r5Lj9tu8/
Expected behaviour
If I just click the numeral field, no prefix should show.
Actual behaviour
Just clicking the numeral field cause the prefix to appear.
My guess is that the problem is here:
https://github.com/nosir/cleave.js/blob/e3fa6f3637fa6d8ea97ef66ac1957950632b72ab/src/Cleave.js#L199
Maybe your intention was to check for !pps.noImmediatePrefix
instead. I'm not fully sure anyway.