Open Gudnessuche opened 3 weeks ago
Thank you for the clarification of this issue.
I was thinking the following code would suffice:
`const max = 2.1e15; // 2.1 quadrillion const inputElement = document.getElementById("myInput");
inputElement.addEventListener("input", function(e) { const typedValue = parseFloat(e.target.value); if (!isNaN(typedValue) && typedValue > max) { e.target.value = max; } }); `
Also which of the files has this component input field, so I consider impementing
Is your feature request related to a problem? Please describe. I don't like the fact that I can input over 2.1 quadrillian sats, and there's an option to post.
Describe the solution you'd like A nice solution would be to stop ability to input text after characters.(precisely not greater than 2.1 quadrillian sats)
Describe alternatives you've considered An alternative might be to denominate in users currency, or at least an option for user to denominate for themselves.
Additional context
.