@dialstack/sdk-dev / js/src / formatOnBlur
Function: formatOnBlur()
TypeScript
function formatOnBlur(value): string;
Defined in: sdk/js/src/utils/phone-input-format.ts:56
Tidy a finished value.
Deletions leave the value part-formatted on purpose; a blur means the reader has moved on, so it is safe to settle it. Nothing that is not a single number is touched, so a row still under correction keeps its text.
Parameters
value
string
Returns
string