Changes to Number and Currency Components in Summer ’21
Here are some minor changes that were not documented officially.
Number and Currency Components
The Number and Currency components were upgraded to new LWC technology. This results in the following new behavior:
- When not in focus, the value is rounded or zero-padded according to the scale. This affects value presentation only. It has no impact on the actual value: when the field acquires focus again the actual, unrounded number will be displayed. It is also the actual number, which gets sent to the backend.
- The input allows for localized digits: e.g. US –
123456789
; SA –١٢٣٤٥٦٧٨٩
- The input allows
- for entry of an arbitrary number of digits and a few other symbols (e,m,t,k,b) upto 255.
- to increment or decrement current value using the up and down arrow keys (+/- 1)
- for the use of the binary form by prefixing a sequence of 0s and 1s with 0b (link)
- for the use of the scientific notation
- Big numbers
- When in focus can get converted to scientific notation
- 1e+38
- When out of focus get expanded
- 100,000,000,000,000,000,000,000,000,000,000,000,000.00000 instead of 1e+38.
- When in focus can get converted to scientific notation