Tip Calculator App

Solution retrospective
Maybe instead of trying to prevent certain inputs in the fields i should instead sanitize and create an input string to work with....i don't know ....
What challenges did you encounter, and how did you overcome them?Even with number input fields, letters, operators, etc.. can still be typed in by default which makes no sense to me ... anyway i had to prevent unwanted inputs as best i could...which then i had to rewrite because Firefox number input fields logged `` when dots were input as value. Advice i found online said to use text input instead, so i changed them, which then started causing issues in google chrome like pressing AltGr + number key symbols the number key setting isDigit to true letting the input trough - regardless of what key it was - with the symbols creating issues. I don't know...did what i could.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Kitalphar's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord