bieber / dovetails

Joinery generator
GNU General Public License v3.0
21 stars 9 forks source link

Use type="number" for numerical inputs #1

Closed wraybowling closed 3 years ago

wraybowling commented 3 years ago

Your inputs are using plain text which allows full alphabet of characters. Instead, use number inputs. You'll get

example <input type="number" step="0.001" min="0.1" />

bieber commented 3 years ago

Hm, sounds like ten minutes spent reading the docs on the new (how many years after HTML5 came out can I still keep calling them "new?") input types could have saved me a lot of grief manually implementing the validation. I'll have a look at this, thanks

bieber commented 3 years ago

Implemented in latest commit