A simple custom Sencha ExtJS 4.x, 5.x, 6.x component to show correctly formatted currency values on an input box with increment/decrement spinner. Has the xtype 'currencyfield'. When the user is editing the value, the currency symbol is hidden until the edit is complete.
A Pen by Brian Barnett on CodePen.
Hi, this is very neat.
However, i faced a small problem when the currencyfield is configured with autoStripChars: true.
You can take a look at this fiddle:
https://fiddle.sencha.com/#view/editor&fiddle/1o1h
To reproduce, run the fiddle, then edit the field value (using the keyboard, not the spinner) and click outside the field - you should see the formatting is removed.