We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fadc40 commit 4d5c20dCopy full SHA for 4d5c20d
src/finput.ts
@@ -76,12 +76,12 @@ class Finput {
76
77
public setRawValue(val: any) {
78
let value: string;
79
- if (!val) {
80
- value = "";
81
- } else if (typeof val === "number" && !isNaN(val)) {
+ if (typeof val === "number" && !isNaN(val)) {
82
value = helpers.rawToFormatted(val, this.options);
83
} else if (typeof val === "string") {
84
value = val;
+ } else if (!val) {
+ value = "";
85
} else {
86
return;
87
}
0 commit comments