ui fixes, input fixes, better dev workflow
This commit is contained in:
@@ -30,7 +30,7 @@ export default function CurrencyInput({
|
||||
}: Props) {
|
||||
const mergedClass = ["input", className].filter(Boolean).join(" ");
|
||||
const formatString = (raw: string) => {
|
||||
const cleanedRaw = raw.replace(/[^0-9.]/g, "");
|
||||
const cleanedRaw = raw.replace(/,/g, ".").replace(/[^0-9.]/g, "");
|
||||
const parts = cleanedRaw.split(".");
|
||||
return parts.length === 1
|
||||
? parts[0]
|
||||
|
||||
Reference in New Issue
Block a user