* Force the element to reformat its value again (just in case the formatting has been lost). * This can be used right after a form submission for instance (after a previous call to `unformat`). * * @example anElement.reformat() * * @returns {AutoNumeric}
()
| 2596 | * @returns {AutoNumeric} |
| 2597 | */ |
| 2598 | reformat() { |
| 2599 | // `this.rawValue` is used instead of `this.domElement.value` because when the content is `unformatLocalized`, it can become a string that cannot be converted to a number easily |
| 2600 | this.set(this.rawValue); |
| 2601 | |
| 2602 | return this; |
| 2603 | } |
| 2604 | |
| 2605 | /** |
| 2606 | * Remove the formatting and keep only the raw unformatted value in the element (as a numericString) |
no test coverage detected