Counting zero's sucks!!

mwasigala

Caroline Mwasigala

Posted on September 26, 2021

Counting zero's sucks!!

Let's get real, it sucks when things don't behave the way they should. User-friendliness is underrated when it comes to form input fields.

When providing a user with an input field to write a number and it doesn't get formatted as how normally numbers are, it gives the user another task of counting zero's, honestly it sucks 😠.

Tried searching for a solution online but couldn't find what I wanted 😩, that's when I decided to solve it myself and help others by compiling the solution into a library and place it in a place where anyone can find it.

Github link
NPM link

Demo

Demo

How did I do it ?!

Regular Expression
Regular Expression
Why reinvent the wheel?! 😦
Regards,

💖 💪 🙅 🚩
mwasigala
Caroline Mwasigala

Posted on September 26, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related