whenever i format <input type="number" /> I get the error
The specified value "1,212" cannot be parsed, or is out of range
This is my JS code
const cleaveZen = window.cleaveZen;
const { formatNumeral } = cleaveZen;
const currencyInputs = document.querySelectorAll(".currencymask");
currencyInputs.forEach((currencyInput) => {
currencyInput.addEventListener("input", (e) => {
currencyInput.value = formatNumeral(e.target.value, {
numeralThousandsGroupStyle: "thousand",
});
});
});
whenever i format
<input type="number" />I get the errorThe specified value "1,212" cannot be parsed, or is out of rangeThis is my JS code