Based on the cleave.js issue 'US Phone Number with extension #412', we code

Based on the cleave.js issue ‘US Phone Number with extension
#412’, we coded:

new CustomStringBlockFormatter.Builder()
	.blocks( 0, 3, 3, 4 )
	.delimiters( "(", ") ", "-" )
	.numeric()
	.build()
	.extend( this )
	;

and when we enter a value in the field, we get this:

(360) 555) 1212

after the 2nd set of numbers, the string ") " is presented instead of “-”. We cannot figure out what we are doing wrong. Any ideas?

Seems to be a bug. I opened an issue https://github.com/johannesh2/textfieldformatter/issues/28

I’ll check right away if it’s an easy one to fix

Fixed in 5.0.1

Thank you for your effort and quick response!