cleave.js icon indicating copy to clipboard operation
cleave.js copied to clipboard

Blocks improperly work with numeral option

Open kde713 opened this issue 7 years ago • 2 comments

To reproduce the error or describe your requirement with a jsfiddle url would be appreciated:

  • Fork this with vanilla JS component: https://jsfiddle.net/ztn0sqh3/

blocks feature improperly working when numeral option enabled.

  • Length limit doesn't applied
  • Delimiter added on unexpected position

kde713 avatar Apr 03 '19 07:04 kde713

Try using numericOnly: true option instead of the the numeral: true option.

https://github.com/nosir/cleave.js/blob/master/doc/options.md#numericonly

svnv avatar Apr 10 '19 06:04 svnv

@svnv Oh... it was my misunderstanding.. Really appreciate for your help.

kde713 avatar Apr 10 '19 06:04 kde713