@davebogan98 I’m looking, but meanwhile, a couple of comments…
This statement (lines 164 and 248) is incorrect:
if (event.key === "Enter" | "Tab")
It should be:
if (event.key === "Enter" || event.key === "Tab")
Also, in this statement (lines 76 and 239), value must be a string
if (regExpAmount.test(value)) {
Should be something like this:
if (regExpAmount.test(value.toString())) {
However, I haven’t checked all of the code surrounding this check, but I suspect that what you really want is that the fields that are being validated are defined as string (not number) and that if the value is valid, it would then be converted to a number to be used.
Still didn’t get to the issue at hand.